(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,14807,t=>{"use strict";let e,s,i;var n,r=t.i(43476),a=t.i(71645);let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],l=new Set(o),h=(t,e,s)=>s>e?e:s"number"==typeof t,parse:parseFloat,transform:t=>t},c={...d,transform:t=>h(0,1,t)},u={...d,default:1},m=t=>Math.round(1e5*t)/1e5,p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,f=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,x=(t,e)=>s=>!!("string"==typeof s&&f.test(s)&&s.startsWith(t)||e&&null!=s&&Object.prototype.hasOwnProperty.call(s,e)),g=(t,e,s)=>i=>{if("string"!=typeof i)return i;let[n,r,a,o]=i.match(p);return{[t]:parseFloat(n),[e]:parseFloat(r),[s]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},y={...d,transform:t=>Math.round(h(0,255,t))},v={test:x("rgb","red"),parse:g("red","green","blue"),transform:({red:t,green:e,blue:s,alpha:i=1})=>"rgba("+y.transform(t)+", "+y.transform(e)+", "+y.transform(s)+", "+m(c.transform(i))+")"},b={test:x("#"),parse:function(t){let e="",s="",i="",n="";return t.length>5?(e=t.substring(1,3),s=t.substring(3,5),i=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),s=t.substring(2,3),i=t.substring(3,4),n=t.substring(4,5),e+=e,s+=s,i+=i,n+=n),{red:parseInt(e,16),green:parseInt(s,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}},transform:v.transform},w=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),j=w("deg"),k=w("%"),T=w("px"),N=w("vh"),S=w("vw"),P={...k,parse:t=>k.parse(t)/100,transform:t=>k.transform(100*t)},C={test:x("hsl","hue"),parse:g("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:s,alpha:i=1})=>"hsla("+Math.round(t)+", "+k.transform(m(e))+", "+k.transform(m(s))+", "+m(c.transform(i))+")"},A={test:t=>v.test(t)||b.test(t)||C.test(t),parse:t=>v.test(t)?v.parse(t):C.test(t)?C.parse(t):b.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?v.transform(t):C.transform(t),getAnimatableNone:t=>{let e=A.parse(t);return e.alpha=0,A.transform(e)}},M=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,E="number",V="color",D=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function R(t){let e=t.toString(),s=[],i={color:[],number:[],var:[]},n=[],r=0,a=e.replace(D,t=>(A.test(t)?(i.color.push(r),n.push(V),s.push(A.parse(t))):t.startsWith("var(")?(i.var.push(r),n.push("var"),s.push(t)):(i.number.push(r),n.push(E),s.push(parseFloat(t))),++r,"${}")).split("${}");return{values:s,split:a,indexes:i,types:n}}function L(t){return R(t).values}function F(t){let{split:e,types:s}=R(t),i=e.length;return t=>{let n="";for(let r=0;r"number"==typeof t?0:A.test(t)?A.getAnimatableNone(t):t,I={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(p)?.length||0)+(t.match(M)?.length||0)>0},parse:L,createTransformer:F,getAnimatableNone:function(t){let e=L(t);return F(t)(e.map(B))}},U=new Set(["brightness","contrast","saturate","opacity"]);function O(t){let[e,s]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[i]=s.match(p)||[];if(!i)return t;let n=s.replace(i,""),r=+!!U.has(e);return i!==s&&(r*=100),e+"("+r+n+")"}let $=/\b([a-z-]*)\(.*?\)/gu,W={...I,getAnimatableNone:t=>{let e=t.match($);return e?e.map(O).join(" "):t}},H={...d,transform:Math.round},q={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,fontSize:T,backgroundPositionX:T,backgroundPositionY:T,rotate:j,rotateX:j,rotateY:j,rotateZ:j,scale:u,scaleX:u,scaleY:u,scaleZ:u,skew:j,skewX:j,skewY:j,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:c,originX:P,originY:P,originZ:T,zIndex:H,fillOpacity:c,strokeOpacity:c,numOctaves:H},z={...q,color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:W,WebkitFilter:W},X=t=>z[t],Y=()=>({translate:0,scale:1,origin:0,originPoint:0}),K=()=>({x:Y(),y:Y()}),G=()=>({min:0,max:0}),_=()=>({x:G(),y:G()}),Z=t=>!!(t&&t.getVelocity),Q=new Set(["width","height","top","left","right","bottom",...o]),J=t=>e=>e.test(t),tt=[d,T,k,j,S,N,{test:t=>"auto"===t,parse:t=>t}],te=t=>tt.find(J(t));var ts=t.i(47167);let ti=()=>{},tn=()=>{};ts.default;let tr=t=>e=>"string"==typeof e&&e.startsWith(t),ta=tr("--"),to=tr("var(--"),tl=t=>!!to(t)&&th.test(t.split("/*")[0].trim()),th=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function td(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tu=t=>180*t/Math.PI,tm=t=>tf(tu(Math.atan2(t[1],t[0]))),tp={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tm,rotateZ:tm,skewX:t=>tu(Math.atan(t[1])),skewY:t=>tu(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tf=t=>((t%=360)<0&&(t+=360),t),tx=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tg=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ty={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tx,scaleY:tg,scale:t=>(tx(t)+tg(t))/2,rotateX:t=>tf(tu(Math.atan2(t[6],t[5]))),rotateY:t=>tf(tu(Math.atan2(-t[2],t[0]))),rotateZ:tm,rotate:tm,skewX:t=>tu(Math.atan(t[4])),skewY:t=>tu(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tv(t){return+!!t.includes("scale")}function tb(t,e){let s,i;if(!t||"none"===t)return tv(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)s=ty,i=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=tp,i=e}if(!i)return tv(e);let r=s[e],a=i[1].split(",").map(tw);return"function"==typeof r?r(a):a[r]}function tw(t){return parseFloat(t.trim())}let tj=t=>t===d||t===T,tk=new Set(["x","y","z"]),tT=o.filter(t=>!tk.has(t)),tN={width:({x:t},{paddingLeft:e="0",paddingRight:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),height:({y:t},{paddingTop:e="0",paddingBottom:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tb(e,"x"),y:(t,{transform:e})=>tb(e,"y")};tN.translateX=tN.x,tN.translateY=tN.y;let tS=t=>t,tP={},tC=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tA(t,e){let s=!1,i=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>s=!0,a=tC.reduce((t,s)=>(t[s]=function(t,e){let s=new Set,i=new Set,n=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){a.has(e)&&(d.schedule(e),t()),l++,e(o)}let d={schedule:(t,e=!1,r=!1)=>{let o=r&&n?s:i;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{i.delete(t),a.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[s,i]=[i,s],s.forEach(h),e,l=0,s.clear(),n=!1,r&&(r=!1,d.process(t))}};return d}(r,e?s:void 0),t),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:d,update:c,preRender:u,render:m,postRender:p}=a,f=()=>{let r=tP.useManualTiming?n.timestamp:performance.now();s=!1,tP.useManualTiming||(n.delta=i?1e3/60:Math.max(Math.min(r-n.timestamp,40),1)),n.timestamp=r,n.isProcessing=!0,o.process(n),l.process(n),h.process(n),d.process(n),c.process(n),u.process(n),m.process(n),p.process(n),n.isProcessing=!1,s&&e&&(i=!1,t(f))};return{schedule:tC.reduce((e,r)=>{let o=a[r];return e[r]=(e,r=!1,a=!1)=>(!s&&(s=!0,i=!0,n.isProcessing||t(f)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;etypeof requestAnimationFrame?requestAnimationFrame:tS,!0),tR=new Set,tL=!1,tF=!1,tB=!1;function tI(){if(tF){let t=Array.from(tR).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),s=new Map;e.forEach(t=>{let e,i=(e=[],tT.forEach(s=>{let i=t.getValue(s);void 0!==i&&(e.push([s,i.get()]),i.set(+!!s.startsWith("scale")))}),e);i.length&&(s.set(t,i),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=s.get(t);e&&e.forEach(([e,s])=>{t.getValue(e)?.set(s)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tF=!1,tL=!1,tR.forEach(t=>t.complete(tB)),tR.clear()}function tU(){tR.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tF=!0)})}class tO{constructor(t,e,s,i,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=s,this.motionValue=i,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tR.add(this),tL||(tL=!0,tM.read(tU),tM.resolveKeyframes(tI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:s,motionValue:i}=this;if(null===t[0]){let n=i?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(s&&e){let i=s.readValue(e,r);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=r),i&&void 0===n&&i.set(t[0])}for(let e=1;e{t.getValue(e).set(s)}),this.resolveNoneKeyframes()}}function tq(t,e){-1===t.indexOf(e)&&t.push(e)}function tz(t,e){let s=t.indexOf(e);s>-1&&t.splice(s,1)}class tX{constructor(){this.subscriptions=[]}add(t){return tq(this.subscriptions,t),()=>tz(this.subscriptions,t)}notify(t,e,s){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,s);else for(let n=0;n(void 0===e&&tG.set(tV.isProcessing||tP.useManualTiming?tV.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(tK)}};class t_{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=tG.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=tG.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tX);let s=this.events[t].add(e);return"change"===t?()=>{s(),tM.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,s){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return i&&i.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=tG.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let s=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),s?1e3/s*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tZ(t,e){return new t_(t,e)}let tQ=[...tt,A,I],tJ={current:null},t0={current:!1},t1="u">typeof window,t2=new WeakMap;function t5(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function t3(t){return"string"==typeof t||Array.isArray(t)}let t4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t9=["initial",...t4];function t6(t){return t5(t.animate)||t9.some(e=>t3(t[e]))}function t7(t){return!!(t6(t)||t.variants)}function t8(t){let e=[{},{}];return t?.values.forEach((t,s)=>{e[0][s]=t.get(),e[1][s]=t.getVelocity()}),e}function et(t,e,s,i){if("function"==typeof e){let[n,r]=t8(i);e=e(void 0!==s?s:t.custom,n,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,r]=t8(i);e=e(void 0!==s?s:t.custom,n,r)}return e}let ee=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],es={};class ei{scrapeMotionValuesFromProps(t,e,s){return{}}constructor({parent:t,props:e,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:n,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tO,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tG.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(t0.current||function(){if(t0.current=!0,t1)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>tJ.current=t.matches;t.addEventListener("change",e),e()}else tJ.current=!1}(),this.shouldReduceMotion=tJ.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),tE(this.notifyUpdate),tE(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let s;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let i=l.has(t);i&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tM.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),s&&s(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in es){let e=es[t];if(!e)continue;let{isEnabled:s,Feature:i}=e;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let s=this.values.get(t);e!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return void 0===s&&void 0!==e&&(s=tZ(null===e?void 0:e,{owner:this}),this.addValue(t,s)),s}readValue(t,e){let s=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=s){let i,n;if("string"==typeof s&&(i=s,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(n=s,/^0[^.\s]+$/u.test(n))))s=parseFloat(s);else{let i;i=s,!tQ.find(J(i))&&I.test(e)&&(s=t$(t,e))}this.setBaseTarget(t,Z(s)?s.get():s)}return Z(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let i=et(this.props,s,this.presenceContext?.custom);i&&(e=i[t])}if(s&&void 0!==e)return e;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||Z(i)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new tX),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tY.render(this.render)}}class en extends ei{constructor(){super(...arguments),this.KeyframeResolver=tH}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let s=t.style;return s?s[e]:void 0}removeValueFromRenderState(t,{vars:e,style:s}){delete e[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Z(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function er(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let ea=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},el=o.length;function eh(t,e,s){let{style:i,vars:n,transformOrigin:r}=t,a=!1,h=!1;for(let t in e){let s=e[t];if(l.has(t)){a=!0;continue}if(ta(t)){n[t]=s;continue}{let e=ea(s,q[t]);t.startsWith("origin")?(h=!0,r[t]=e):i[t]=e}}if(!e.transform&&(a||s?i.transform=function(t,e,s){let i="",n=!0;for(let r=0;r"string"==typeof t&&"svg"===t.toLowerCase();function ex(t,{style:e,vars:s},i,n){let r,a=t.style;for(r in e)a[r]=e[r];for(r in n?.applyProjectionStyles(a,i),s)a.setProperty(r,s[r])}function eg(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ey={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!T.test(t))return t;else t=parseFloat(t);let s=eg(t,e.target.x),i=eg(t,e.target.y);return`${s}% ${i}%`}},ev=(t,e,s)=>t+(e-t)*s,eb={borderRadius:{...ey,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ey,borderTopRightRadius:ey,borderBottomLeftRadius:ey,borderBottomRightRadius:ey,boxShadow:{correct:(t,{treeScale:e,projectionDelta:s})=>{let i=I.parse(t);if(i.length>5)return t;let n=I.createTransformer(t),r=+("number"!=typeof i[0]),a=s.x.scale*e.x,o=s.y.scale*e.y;i[0+r]/=a,i[1+r]/=o;let l=ev(a,o,.5);return"number"==typeof i[2+r]&&(i[2+r]/=l),"number"==typeof i[3+r]&&(i[3+r]/=l),n(i)}}};function ew(t,{layout:e,layoutId:s}){return l.has(t)||t.startsWith("origin")||(e||void 0!==s)&&(!!eb[t]||"opacity"===t)}function ej(t,e,s){let i=t.style,n=e?.style,r={};if(!i)return r;for(let e in i)(Z(i[e])||n&&Z(n[e])||ew(e,t)||s?.getValue(e)?.liveStyle!==void 0)&&(r[e]=i[e]);return r}function ek(t,e,s){let i=ej(t,e,s);for(let s in t)(Z(t[s])||Z(e[s]))&&(i[-1!==o.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]);return i}class eT extends en{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.has(e)){let t=X(e);return t&&t.default||0}return e=ep.has(e)?e:er(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,s){return ek(t,e,s)}build(t,e,s){em(t,e,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,e,s,i){for(let s in ex(t,e,void 0,i),e.attrs)t.setAttribute(ep.has(s)?s:er(s),e.attrs[s])}mount(t){this.isSVGTag=ef(t.tagName),super.mount(t)}}function eN({top:t,left:e,right:s,bottom:i}){return{x:{min:e,max:s},y:{min:t,max:i}}}function eS(t){return void 0===t||1===t}function eP({scale:t,scaleX:e,scaleY:s}){return!eS(t)||!eS(e)||!eS(s)}function eC(t){return eP(t)||eA(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eA(t){var e,s;return(e=t.x)&&"0%"!==e||(s=t.y)&&"0%"!==s}function eM(t,e,s,i,n){return void 0!==n&&(t=i+n*(t-i)),i+s*(t-i)+e}function eE(t,e=0,s=1,i,n){t.min=eM(t.min,e,s,i,n),t.max=eM(t.max,e,s,i,n)}function eV(t,{x:e,y:s}){eE(t.x,e.translate,e.scale,e.originPoint),eE(t.y,s.translate,s.scale,s.originPoint)}function eD(t,e){t.min=t.min+e,t.max=t.max+e}function eR(t,e,s,i,n=.5){let r=ev(t.min,t.max,n);eE(t,e,s,r,i)}function eL(t,e){eR(t.x,e.x,e.scaleX,e.scale,e.originX),eR(t.y,e.y,e.scaleY,e.scale,e.originY)}function eF(t,e){return eN(function(t,e){if(!e)return t;let s=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}class eB extends en{constructor(){super(...arguments),this.type="html",this.renderInstance=ex}readValueFromInstance(t,e){if(l.has(e))return this.projection?.isProjecting?tv(e):((t,e)=>{let{transform:s="none"}=getComputedStyle(t);return tb(s,e)})(t,e);{let s=window.getComputedStyle(t),i=(ta(e)?s.getPropertyValue(e):s[e])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return eF(t,e)}build(t,e,s){eh(t,e,s.transformTemplate)}scrapeMotionValuesFromProps(t,e,s){return ej(t,e,s)}}let eI=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function eU(t){if("string"!=typeof t||t.includes("-"));else if(eI.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let eO=(0,a.createContext)({}),e$=(0,a.createContext)({strict:!1}),eW=(0,a.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),eH=(0,a.createContext)({});function eq(t){return Array.isArray(t)?t.join(" "):t}let ez=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eX(t,e,s){for(let i in e)Z(e[i])||ew(i,s)||(t[i]=e[i])}let eY=()=>({...ez(),attrs:{}}),eK=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eG(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eK.has(t)}let e_=t=>!eG(t);try{n=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof n&&(e_=t=>t.startsWith("on")?!eG(t):n(t))}catch{}function eZ(t){return Z(t)?t.get():t}let eQ=(0,a.createContext)(null),eJ=t=>(e,s)=>{let i,n=(0,a.useContext)(eH),r=(0,a.useContext)(eQ),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},s,i,n){return{latestValues:function(t,e,s,i){let n={},r=i(t,{});for(let t in r)n[t]=eZ(r[t]);let{initial:a,animate:o}=t,l=t6(t),h=t7(t);e&&h&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let d=!!s&&!1===s.initial,c=(d=d||!1===a)?o:a;if(c&&"boolean"!=typeof c&&!t5(c)){let e=Array.isArray(c)?c:[c];for(let s=0;stypeof window,e5={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},e3=!1;function e4(){return!function(){if(e3)return;let t={};for(let e in e5)t[e]={isEnabled:t=>e5[e].some(e=>!!t[e])};es=t,e3=!0}(),es}let e9=Symbol.for("motionComponentSymbol"),e6="data-"+er("framerAppearId"),e7=(0,a.createContext)({});function e8(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let st=e2?a.useLayoutEffect:a.useEffect;function se(t,{forwardMotionProps:e=!1,type:s}={},i,n){i&&function(t){let e=e4();for(let s in t)e[s]={...e[s],...t[s]};es=e}(i);let o=s?"svg"===s:eU(t),l=o?e1:e0;function h(s,i){var h;let d,c,u,m={...(0,a.useContext)(eW),...s,layoutId:function({layoutId:t}){let e=(0,a.useContext)(eO).id;return e&&void 0!==t?e+"-"+t:t}(s)},{isStatic:p}=m,f=function(t){let{initial:e,animate:s}=function(t,e){if(t6(t)){let{initial:e,animate:s}=t;return{initial:!1===e||t3(e)?e:void 0,animate:t3(s)?s:void 0}}return!1!==t.inherit?e:{}}(t,(0,a.useContext)(eH));return(0,a.useMemo)(()=>({initial:e,animate:s}),[eq(e),eq(s)])}(s),x=l(s,p);if(!p&&e2){(0,a.useContext)(e$).strict;let e=function(t){let{drag:e,layout:s}=e4();if(!e&&!s)return{};let i={...e,...s};return{MeasureLayout:e?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(m);d=e.MeasureLayout,f.visualElement=function(t,e,s,i,n,r){let{visualElement:o}=(0,a.useContext)(eH),l=(0,a.useContext)(e$),h=(0,a.useContext)(eQ),d=(0,a.useContext)(eW).reducedMotion,c=(0,a.useRef)(null),u=(0,a.useRef)(!1);i=i||l.renderer,!c.current&&i&&(c.current=i(t,{visualState:e,parent:o,props:s,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:d,isSVG:r}),u.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));let m=c.current,p=(0,a.useContext)(e7);m&&!m.projection&&n&&("html"===m.type||"svg"===m.type)&&function(t,e,s,i){let{layoutId:n,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutCrossfade:d}=e;t.projection=new s(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!a||o&&e8(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,crossfade:d,layoutScroll:l,layoutRoot:h})}(c.current,s,n,p);let f=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{m&&f.current&&m.update(s,h)});let x=s[e6],g=(0,a.useRef)(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return st(()=>{u.current=!0,m&&(f.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),g.current&&m.animationState&&m.animationState.animateChanges())}),(0,a.useEffect)(()=>{m&&(!g.current&&m.animationState&&m.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),g.current=!1),m.enteringChildren=void 0)}),m}(t,x,m,n,e.ProjectionNode,o)}return(0,r.jsxs)(eH.Provider,{value:f,children:[d&&f.visualElement?(0,r.jsx)(d,{visualElement:f.visualElement,...m}):null,function(t,e,s,{latestValues:i},n,r=!1,o){let l=(o??eU(t)?function(t,e,s,i){let n=(0,a.useMemo)(()=>{let s=eY();return em(s,e,ef(i),t.transformTemplate,t.style),{...s.attrs,style:{...s.style}}},[e]);if(t.style){let e={};eX(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let s,i,n={},r=(s=t.style||{},eX(i={},s,t),Object.assign(i,function({transformTemplate:t},e){return(0,a.useMemo)(()=>{let s=ez();return eh(s,e,t),Object.assign({},s.vars,s.style)},[e])}(t,e)),i);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n})(e,i,n,t),h=function(t,e,s){let i={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(e_(n)||!0===s&&eG(n)||!e&&!eG(n)||t.draggable&&n.startsWith("onDrag"))&&(i[n]=t[n]);return i}(e,"string"==typeof t,r),d=t!==a.Fragment?{...h,...l,ref:s}:{},{children:c}=e,u=(0,a.useMemo)(()=>Z(c)?c.get():c,[c]);return(0,a.createElement)(t,{...d,children:u})}(t,s,(h=f.visualElement,c=(0,a.useRef)(i),(0,a.useInsertionEffect)(()=>{c.current=i}),u=(0,a.useRef)(null),(0,a.useCallback)(t=>{t&&x.onMount?.(t),h&&(t?h.mount(t):h.unmount());let e=c.current;if("function"==typeof e)if(t){let s=e(t);"function"==typeof s&&(u.current=s)}else u.current?(u.current(),u.current=null):e(t);else e&&(e.current=t)},[h])),x,p,e,o)]})}h.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let d=(0,a.forwardRef)(h);return d[e9]=t,d}class ss{constructor(t){this.isMounted=!1,this.node=t}update(){}}function si(t,e,s){let i=t.getProps();return et(i,e,void 0!==s?s:i.custom,t)}function sn(t,e){return t?.[e]??t?.default??t}let sr=t=>Array.isArray(t);function sa(t,e){let s=t.getValue("willChange");if(Z(s)&&s.add)return s.add(e);if(!s&&tP.WillChange){let s=new tP.WillChange("auto");t.addValue("willChange",s),s.add(e)}}let so=t=>1e3*t,sl=(t,e)=>s=>e(t(s)),sh=(...t)=>t.reduce(sl),sd={layout:0,mainThread:0,waapi:0};function sc(t,e,s){return(s<0&&(s+=1),s>1&&(s-=1),s<1/6)?t+(e-t)*6*s:s<.5?e:s<2/3?t+(e-t)*(2/3-s)*6:t}function su(t,e){return s=>s>0?e:t}let sm=(t,e,s)=>{let i=t*t,n=s*(e*e-i)+i;return n<0?0:Math.sqrt(n)},sp=[b,v,C];function sf(t){let e=sp.find(e=>e.test(t));if(ti(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let s=e.parse(t);return e===C&&(s=function({hue:t,saturation:e,lightness:s,alpha:i}){t/=360,s/=100;let n=0,r=0,a=0;if(e/=100){let i=s<.5?s*(1+e):s+e-s*e,o=2*s-i;n=sc(o,i,t+1/3),r=sc(o,i,t),a=sc(o,i,t-1/3)}else n=r=a=s;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*a),alpha:i}}(s)),s}let sx=(t,e)=>{let s=sf(t),i=sf(e);if(!s||!i)return su(t,e);let n={...s};return t=>(n.red=sm(s.red,i.red,t),n.green=sm(s.green,i.green,t),n.blue=sm(s.blue,i.blue,t),n.alpha=ev(s.alpha,i.alpha,t),v.transform(n))},sg=new Set(["none","hidden"]);function sy(t,e){return s=>ev(t,e,s)}function sv(t){return"number"==typeof t?sy:"string"==typeof t?tl(t)?su:A.test(t)?sx:sj:Array.isArray(t)?sb:"object"==typeof t?A.test(t)?sx:sw:su}function sb(t,e){let s=[...t],i=s.length,n=t.map((t,s)=>sv(t)(t,e[s]));return t=>{for(let e=0;e{for(let e in i)s[e]=i[e](t);return s}}let sj=(t,e)=>{let s=I.createTransformer(e),i=R(t),n=R(e);if(!(i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length))return ti(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),su(t,e);if(sg.has(t)&&!n.values.length||sg.has(e)&&!i.values.length)return sg.has(t)?s=>s<=0?t:e:s=>s>=1?e:t;return sh(sb(function(t,e){let s=[],i={color:0,var:0,number:0};for(let n=0;n{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tM.update(e,t),stop:()=>tE(e),now:()=>tV.isProcessing?tV.timestamp:tG.now()}},sN=(t,e,s=10)=>{let i="",n=Math.max(Math.round(e/s),2);for(let e=0;e=2e4?1/0:e}function sP(t,e,s){var i,n;let r=Math.max(e-5,0);return i=s-t(r),(n=e-r)?1e3/n*i:0}let sC=.01,sA=2,sM=.005,sE=.5;function sV(t,e){return t*Math.sqrt(1-e*e)}let sD=["duration","bounce"],sR=["stiffness","damping","mass"];function sL(t,e){return e.some(e=>void 0!==t[e])}function sF(t=.3,e=.3){let s,i="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:r}=i,a=i.keyframes[0],o=i.keyframes[i.keyframes.length-1],l={done:!1,value:a},{stiffness:d,damping:c,mass:u,duration:m,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!sL(t,sR)&&sL(t,sD))if(t.visualDuration){let s=2*Math.PI/(1.2*t.visualDuration),i=s*s,n=2*h(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:1,stiffness:i,damping:n}}else{let s=function({duration:t=800,bounce:e=.3,velocity:s=0,mass:i=1}){let n,r;ti(t<=so(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=h(.05,1,a),t=h(.01,10,t/1e3),a<1?(n=e=>{let i=e*a,n=i*t;return .001-(i-s)/sV(e,a)*Math.exp(-n)},r=e=>{let i=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-i),l=sV(Math.pow(e,2),a);return(i*s+s-r)*o*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-s)*t+1),r=e=>t*t*(s-e)*Math.exp(-e*t));let o=function(t,e,s){let i=s;for(let s=1;s<12;s++)i-=t(i)/e(i);return i}(n,r,5/t);if(t=so(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*i;return{stiffness:e,damping:2*a*Math.sqrt(i*e),duration:t}}}(t);(e={...e,...s,mass:1}).isResolvedFromDuration=!0}return e}({...i,velocity:-((i.velocity||0)/1e3)}),x=p||0,g=c/(2*Math.sqrt(d*u)),y=o-a,v=Math.sqrt(d/u)/1e3,b=5>Math.abs(y);if(n||(n=b?sC:sA),r||(r=b?sM:sE),g<1){let t=sV(v,g);s=e=>o-Math.exp(-g*v*e)*((x+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)s=t=>o-Math.exp(-v*t)*(y+(x+v*y)*t);else{let t=v*Math.sqrt(g*g-1);s=e=>{let s=Math.exp(-g*v*e),i=Math.min(t*e,300);return o-s*((x+g*v*y)*Math.sinh(i)+t*y*Math.cosh(i))/t}}let w={calculatedDuration:f&&m||null,next:t=>{let e=s(t);if(f)l.done=t>=m;else{let i=0===t?x:0;g<1&&(i=0===t?so(x):sP(s,t,e));let a=Math.abs(o-e)<=r;l.done=Math.abs(i)<=n&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(sS(w),2e4),e=sN(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function sB({keyframes:t,velocity:e=0,power:s=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:d}){let c,u,m=t[0],p={done:!1,value:m},f=s*e,x=m+f,g=void 0===a?x:a(x);g!==x&&(f=g-m);let y=t=>-f*Math.exp(-t/i),v=t=>g+y(t),b=t=>{let e=y(t),s=v(t);p.done=Math.abs(e)<=h,p.value=p.done?g:s},w=t=>{let e;if(e=p.value,void 0!==o&&el){var s;c=t,u=sF({keyframes:[p.value,(s=p.value,void 0===o?l:void 0===l||Math.abs(o-s){let e=!1;return(u||void 0!==c||(e=!0,b(t),w(t)),void 0!==c&&t>=c)?u.next(t-c):(e||b(t),p)}}}sF.applyToOptions=t=>{let e=function(t,e=100,s){let i=s({...t,keyframes:[0,e]}),n=Math.min(sS(i),2e4);return{type:"keyframes",ease:t=>i.next(n*t).value/e,duration:n/1e3}}(t,100,sF);return t.ease=e.ease,t.duration=so(e.duration),t.type="keyframes",t};let sI=(t,e,s)=>(((1-3*s+3*e)*t+(3*s-6*e))*t+3*e)*t;function sU(t,e,s,i){return t===e&&s===i?tS:n=>0===n||1===n?n:sI(function(t,e,s,i,n){let r,a,o=0;do(r=sI(a=e+(s-e)/2,i,n)-t)>0?s=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(n,0,1,t,s),e,i)}let sO=sU(.42,0,1,1),s$=sU(0,0,.58,1),sW=sU(.42,0,.58,1),sH=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,sq=t=>e=>1-t(1-e),sz=sU(.33,1.53,.69,.99),sX=sq(sz),sY=sH(sX),sK=t=>(t*=2)<1?.5*sX(t):.5*(2-Math.pow(2,-10*(t-1))),sG=t=>1-Math.sin(Math.acos(t)),s_=sq(sG),sZ=sH(sG),sQ=t=>Array.isArray(t)&&"number"==typeof t[0],sJ={linear:tS,easeIn:sO,easeInOut:sW,easeOut:s$,circIn:sG,circInOut:sZ,circOut:s_,backIn:sX,backInOut:sY,backOut:sz,anticipate:sK},s0=t=>{if(sQ(t)){tn(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,s,i,n]=t;return sU(e,s,i,n)}return"string"==typeof t?(tn(void 0!==sJ[t],`Invalid easing type '${t}'`,"invalid-easing-type"),sJ[t]):t},s1=(t,e,s)=>{let i=e-t;return 0===i?1:(s-t)/i};function s2({duration:t=300,keyframes:e,times:s,ease:i="easeInOut"}){var n;let r,a=Array.isArray(i)&&"number"!=typeof i[0]?i.map(s0):s0(i),o={done:!1,value:e[0]},l=function(t,e,{clamp:s=!0,ease:i,mixer:n}={}){let r=t.length;if(tn(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,s){let i=[],n=s||tP.mix||sk,r=t.length-1;for(let s=0;s{if(a&&s1)for(;id(h(t[0],t[r-1],e)):d}((n=s&&s.length===e.length?s:(!function(t,e){let s=t[t.length-1];for(let i=1;i<=e;i++){let n=s1(0,e,i);t.push(ev(s,1,n))}}(r=[0],e.length-1),r),n.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||sW).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}let s5=t=>null!==t;function s3(t,{repeat:e,repeatType:s="loop"},i,n=1){let r=t.filter(s5),a=n<0||e&&"loop"!==s&&e%2==1?0:r.length-1;return a&&void 0!==i?i:r[a]}let s4={decay:sB,inertia:sB,tween:s2,keyframes:s2,spring:sF};function s9(t){"string"==typeof t.type&&(t.type=s4[t.type])}class s6{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let s7=t=>t/100;class s8 extends s6{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==tG.now()&&this.tick(tG.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},sd.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;s9(t);let{type:e=s2,repeat:s=0,repeatDelay:i=0,repeatType:n,velocity:r=0}=t,{keyframes:a}=t,o=e||s2;o!==s2&&"number"!=typeof a[0]&&(this.mixKeyframes=sh(s7,sk(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=sS(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:s,totalDuration:i,mixKeyframes:n,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return s.next(0);let{delay:l=0,keyframes:d,repeat:c,repeatType:u,repeatDelay:m,type:p,onUpdate:f,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let v=this.currentTime,b=s;if(c){let t=Math.min(this.currentTime,i)/a,e=Math.floor(t),s=t%1;!s&&t>=1&&(s=1),1===s&&e--,(e=Math.min(e,c+1))%2&&("reverse"===u?(s=1-s,m&&(s-=m/a)):"mirror"===u&&(b=r)),v=h(0,1,s)*a}let w=y?{done:!1,value:d[0]}:b.next(v);n&&(w.value=n(w.value));let{done:j}=w;y||null===o||(j=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&j);return k&&p!==sB&&(w.value=s3(d,this.options,x,this.speed)),f&&f(w.value),k&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=so(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tG.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=sT,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=e??s),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tG.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,sd.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function it(t){let e;return()=>(void 0===e&&(e=t()),e)}let ie=it(()=>void 0!==window.ScrollTimeline),is={},ii=(s=it(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>is.linearEasing??s()),ir=([t,e,s,i])=>`cubic-bezier(${t}, ${e}, ${s}, ${i})`,ia={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ir([0,.65,.55,1]),circOut:ir([.55,0,1,.45]),backIn:ir([.31,.01,.66,-.59]),backOut:ir([.33,1.53,.69,.99])};function io(t){return"function"==typeof t&&"applyToOptions"in t}class il extends s6{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:s,keyframes:i,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=t,tn("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return io(t)&&ii()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,s,{delay:i=0,duration:n=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let d={[e]:s};l&&(d.offset=l);let c=function t(e,s){if(e)return"function"==typeof e?ii()?sN(e,s):"ease-out":sQ(e)?ir(e):Array.isArray(e)?e.map(e=>t(e,s)||ia.easeOut):ia[e]}(o,n);Array.isArray(c)&&(d.easing=c);let u={delay:i,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};h&&(u.pseudoElement=h);let m=t.animate(d,u);return m}(e,s,i,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=s3(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):s.startsWith("--")?e.style.setProperty(s,t):e.style[s]=t,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=so(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ie())?(this.animation.timeline=t,tS):e(this)}}let ih={anticipate:sK,backInOut:sY,circInOut:sZ};class id extends il{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ih&&(t.ease=ih[t.ease])}(t),s9(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:s,onComplete:i,element:n,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new s8({...r,autoplay:!1}),o=Math.max(10,tG.now()-this.startTime),l=h(0,10,o-10);e.setWithVelocity(a.sample(Math.max(0,o-l)).value,a.sample(o).value,l),a.stop()}}let ic=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(I.test(t)||"0"===t)&&!t.startsWith("url("));function iu(t){t.duration=0,t.type="keyframes"}let im=new Set(["opacity","clipPath","filter","transform"]),ip=it(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ix extends s6{constructor({autoplay:t=!0,delay:e=0,type:s="keyframes",repeat:i=0,repeatDelay:n=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:h,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tG.now();const c={autoplay:t,delay:e,type:s,repeat:i,repeatDelay:n,repeatType:r,name:o,motionValue:l,element:h,...d},u=h?.KeyframeResolver||tO;this.keyframeResolver=new u(a,(t,e,s)=>this.onKeyframesResolved(t,e,c,!s),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,s,i){this.keyframeResolver=void 0;let{name:n,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:h}=s;this.resolvedAt=tG.now(),!function(t,e,s,i){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=ic(n,e),o=ic(r,e);return ti(a===o,`You are trying to animate ${e} from "${n}" to "${r}". "${a?r:n}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let s=0;s40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...s,keyframes:t},c=!l&&function(t){let{motionValue:e,name:s,repeatDelay:i,repeatType:n,damping:r,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return ip()&&s&&im.has(s)&&("transform"!==s||!l)&&!o&&!i&&"mirror"!==n&&0!==r&&"inertia"!==a}(d),u=d.motionValue?.owner?.current,m=c?new id({...d,element:u}):new s8(d);m.finished.then(()=>{this.notifyFinished()}).catch(tS),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tB=!0,tU(),tI(),tB=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let ig={type:"spring",stiffness:500,damping:25,restSpeed:10},iy={type:"keyframes",duration:.8},iv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ib=t=>null!==t,iw=(t,e,s,i={},n,r)=>a=>{let o=sn(i,t)||{},h=o.delay||i.delay||0,{elapsed:d=0}=i;d-=so(h);let c={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-d,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:r?void 0:n};!function({when:t,delay:e,delayChildren:s,staggerChildren:i,staggerDirection:n,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:h,...d}){return!!Object.keys(d).length}(o)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?iy:l.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:ig:iv)(t,c)),c.duration&&(c.duration=so(c.duration)),c.repeatDelay&&(c.repeatDelay=so(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let u=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(iu(c),0===c.delay&&(u=!0)),(tP.instantAnimations||tP.skipAnimations)&&(u=!0,iu(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,u&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:s="loop"},i){let n=t.filter(ib),r=e&&"loop"!==s&&e%2==1?0:n.length-1;return n[r]}(c.keyframes,o);if(void 0!==t)return void tM.update(()=>{c.onUpdate(t),c.onComplete()})}return o.isSync?new s8(c):new ix(c)};function ij(t,e,{delay:s=0,transitionOverride:i,type:n}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:a,...o}=e,l=r?.reduceMotion;i&&(r=i);let h=[],d=n&&t.animationState&&t.animationState.getState()[n];for(let e in o){let i=t.getValue(e,t.latestValues[e]??null),n=o[e];if(void 0===n||d&&function({protectedKeys:t,needsAnimating:e},s){let i=t.hasOwnProperty(s)&&!0!==e[s];return e[s]=!1,i}(d,e))continue;let a={delay:s,...sn(r||{},e)},c=i.get();if(void 0!==c&&!i.isAnimating&&!Array.isArray(n)&&n===c&&!a.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){let s=t.props[e6];if(s){let t=window.MotionHandoffAnimation(s,e,tM);null!==t&&(a.startTime=t,u=!0)}}sa(t,e);let m=l??t.shouldReduceMotion;i.start(iw(e,i,n,m&&Q.has(e)?{type:!1}:a,t,u));let p=i.animation;p&&h.push(p)}return a&&Promise.all(h).then(()=>{tM.update(()=>{a&&function(t,e){let{transitionEnd:s={},transition:i={},...n}=si(t,e)||{};for(let e in n={...n,...s}){var r;let s=sr(r=n[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(s):t.addValue(e,tZ(s))}}(t,a)})}),h}function ik(t,e,s,i=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*i;return"function"==typeof s?s(r,a):1===n?r*i:o-r*i}function iT(t,e,s={}){let i=si(t,e,"exit"===s.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=i||{};s.transitionOverride&&(n=s.transitionOverride);let r=i?()=>Promise.all(ij(t,i,s)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=n;return function(t,e,s=0,i=0,n=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(iT(l,e,{...a,delay:s+("function"==typeof i?0:i)+ik(t.variantChildren,l,i,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,i,r,a,o,s)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([r(),a(s.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}let iN=t9.length;function iS(t,e){if(!Array.isArray(e))return!1;let s=e.length;if(s!==t.length)return!1;for(let i=0;it.removeEventListener(e,s)}let iF={x:!1,y:!1};function iB(t){return t.max-t.min}function iI(t,e,s,i=.5){t.origin=i,t.originPoint=ev(e.min,e.max,t.origin),t.scale=iB(s)/iB(e),t.translate=ev(s.min,s.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function iU(t,e,s,i){iI(t.x,e.x,s.x,i?i.originX:void 0),iI(t.y,e.y,s.y,i?i.originY:void 0)}function iO(t,e,s){t.min=s.min+e.min,t.max=t.min+iB(e)}function i$(t,e,s){t.min=e.min-s.min,t.max=t.min+iB(e)}function iW(t,e,s){i$(t.x,e.x,s.x),i$(t.y,e.y,s.y)}let iH=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function iq(t){return{point:{x:t.pageX,y:t.pageY}}}function iz(t,e,s,i){return iL(t,e,t=>iH(t)&&s(t,iq(t)),i)}let iX=({current:t})=>t?t.ownerDocument.defaultView:null,iY=(t,e)=>Math.abs(t-e),iK=new Set(["auto","scroll"]);class iG{constructor(t,e,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iQ(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,n=(t=s.offset,e={x:0,y:0},Math.sqrt(iY(t.x,e.x)**2+iY(t.y,e.y)**2)>=this.distanceThreshold);if(!i&&!n)return;let{point:r}=s,{timestamp:a}=tV;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;i||(o&&o(this.lastMoveEvent,s),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,s)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=i_(e,this.transformPagePoint),tM.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:s,onSessionEnd:i,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=iQ("pointercancel"===t.type?this.lastMoveEventInfo:i_(e,this.transformPagePoint),this.history);this.startEvent&&s&&s(t,r),i&&i(t,r)},!iH(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const o=i_(iq(t),this.transformPagePoint),{point:l}=o,{timestamp:h}=tV;this.history=[{...l,timestamp:h}];const{onSessionStart:d}=e;d&&d(t,iQ(o,this.history)),this.removeListeners=sh(iz(this.contextWindow,"pointermove",this.handlePointerMove),iz(this.contextWindow,"pointerup",this.handlePointerUp),iz(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(iK.has(t.overflowX)||iK.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let s=t===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:i.x-e.x,y:i.y-e.y};(0!==n.x||0!==n.y)&&(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,i),tM.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tE(this.updatePoint)}}function i_(t,e){return e?{point:e(t.point)}:t}function iZ(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iQ({point:t},e){return{point:t,delta:iZ(t,iJ(e)),offset:iZ(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,i=null,n=iJ(t);for(;s>=0&&(i=t[s],!(n.timestamp-i.timestamp>so(.1)));)s--;if(!i)return{x:0,y:0};let r=(n.timestamp-i.timestamp)/1e3;if(0===r)return{x:0,y:0};let a={x:(n.x-i.x)/r,y:(n.y-i.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function iJ(t){return t[t.length-1]}function i0(t,e,s){return{min:void 0!==e?t.min+e:void 0,max:void 0!==s?t.max+s-(t.max-t.min):void 0}}function i1(t,e){let s=e.min-t.min,i=e.max-t.max;return e.max-e.min{e?(this.stopAnimation(),this.snapToCursor(iq(t).point)):this.pauseAnimation()},r=(t,e)=>{this.stopAnimation();let{drag:s,dragPropagation:i,onDragStart:n}=this.getProps();if(s&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(iF[t])return null;else return iF[t]=!0,()=>{iF[t]=!1};return iF.x||iF.y?null:(iF.x=iF.y=!0,()=>{iF.x=iF.y=!1})}(s),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iV(t=>{let e=this.getAxisMotionValue(t).get()||0;if(k.test(e)){let{projection:s}=this.visualElement;if(s&&s.layout){let i=s.layout.layoutBox[t];i&&(e=iB(i)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&tM.postRender(()=>n(t,e)),sa(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:s,dragDirectionLock:i,onDirectionLock:n,onDrag:r}=this.getProps();if(!s&&!this.openDragLock)return;let{offset:a}=e;if(i&&null===this.currentDirection){this.currentDirection=function(t,e=10){let s=null;return Math.abs(t.y)>e?s="y":Math.abs(t.x)>e&&(s="x"),s}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&r(t,e)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>iV(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new iG(t,{onSessionStart:n,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:s,contextWindow:iX(this.visualElement),element:this.visualElement.current})}stop(t,e){let s=t||this.latestPointerEvent,i=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!i||!s)return;let{velocity:r}=i;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&tM.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,s){let{drag:i}=this.getProps();if(!s||!i9(t,i,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:s},i){return void 0!==e&&ts&&(t=i?ev(s,t,i.max):Math.min(t,s)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&e8(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=function(t,{top:e,left:s,bottom:i,right:n}){return{x:i0(t.x,s,n),y:i0(t.y,e,i)}}(s.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:i2(t,"left","right"),y:i2(t,"top","bottom")}}(e),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&iV(t=>{var e,i;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=s.layoutBox[t],i=this.constraints[t],n={},void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:s}=this.getProps();if(!e||!e8(e))return!1;let i=e.current;tn(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let r=function(t,e,s){let i=eF(t,s),{scroll:n}=e;return n&&(eD(i.x,n.offset.x),eD(i.y,n.offset.y)),i}(i,n.root,this.visualElement.getTransformPagePoint()),a=(t=n.layout.layoutBox,{x:i1(t.x,r.x),y:i1(t.y,r.y)});if(s){let t=s(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=eN(t))}return a}startAnimation(t){let{drag:e,dragMomentum:s,dragElastic:i,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(iV(a=>{if(!i9(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:s?t[a]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(t,e){let s=this.getAxisMotionValue(t);return sa(this.visualElement,t),s.start(iw(t,s,0,e,this.visualElement,!1))}stopAnimation(){iV(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iV(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps();return s[e]||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){iV(e=>{let{drag:s}=this.getProps();if(!i9(e,s,this.currentDirection))return;let{projection:i}=this.visualElement,n=this.getAxisMotionValue(e);if(i&&i.layout){let{min:s,max:r}=i.layout.layoutBox[e],a=n.get()||0;n.set(t[e]-ev(s,r,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:s}=this.visualElement;if(!e8(e)||!s||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};iV(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var s,n;let r,a,o,l=e.get();i[t]=(s={min:l,max:l},n=this.constraints[t],r=.5,a=iB(s),(o=iB(n))>a?r=s1(n.min,n.max-a,s.min):a>o&&(r=s1(s.min,s.max-o,n.min)),h(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),iV(e=>{if(!i9(e,t,null))return;let s=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];s.set(ev(n,r,i[e]))})}addListeners(){if(!this.visualElement.current)return;i3.set(this.visualElement,this);let t=this.visualElement.current,e=iz(t,"pointerdown",e=>{let{drag:s,dragListener:i=!0}=this.getProps(),n=e.target,r=n!==t&&iR(n);s&&i&&!r&&this.start(e)}),s=()=>{let{dragConstraints:t}=this.getProps();e8(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tM.read(s);let r=iL(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iV(e=>{let s=this.getAxisMotionValue(e);s&&(this.originPoint[e]+=t[e].translate,s.set(s.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),e(),n(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:s,dragPropagation:i,dragConstraints:n,dragElastic:r,dragMomentum:a}}}function i9(t,e,s){return(!0===e||e===t)&&(null===s||s===t)}let i6=t=>(e,s)=>{t&&tM.postRender(()=>t(e,s))},i7={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var i8=a;let nt=!1;class ne extends i8.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:s,layoutId:i}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),s&&s.register&&i&&s.register(n),nt&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),i7.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:s,drag:i,isPresent:n}=this.props,{projection:r}=s;return r&&(r.isPresent=n,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),nt=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||tM.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tY.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:s}=this.props,{projection:i}=t;nt=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ns(t){let[e,s]=function(t=!0){let e=(0,a.useContext)(eQ);if(null===e)return[!0,null];let{isPresent:s,onExitComplete:i,register:n}=e,r=(0,a.useId)();(0,a.useEffect)(()=>{if(t)return n(r)},[t]);let o=(0,a.useCallback)(()=>t&&i&&i(r),[r,i,t]);return!s&&i?[!1,o]:[!0]}(),i=(0,i8.useContext)(eO);return(0,r.jsx)(ne,{...t,layoutGroup:i,switchLayoutGroup:(0,i8.useContext)(e7),isPresent:e,safeToRemove:s})}function ni(t){return"object"==typeof t&&null!==t}function nn(t){return ni(t)&&"ownerSVGElement"in t}let nr=["TopLeft","TopRight","BottomLeft","BottomRight"],na=nr.length,no=t=>"string"==typeof t?parseFloat(t):t,nl=t=>"number"==typeof t||T.test(t);function nh(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nd=nu(0,.5,s_),nc=nu(.5,.95,tS);function nu(t,e,s){return i=>ie?1:s(s1(t,e,i))}function nm(t,e){t.min=e.min,t.max=e.max}function np(t,e){nm(t.x,e.x),nm(t.y,e.y)}function nf(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nx(t,e,s,i,n){return t-=e,t=i+1/s*(t-i),void 0!==n&&(t=i+1/n*(t-i)),t}function ng(t,e,[s,i,n],r,a){!function(t,e=0,s=1,i=.5,n,r=t,a=t){if(k.test(e)&&(e=parseFloat(e),e=ev(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=ev(r.min,r.max,i);t===r&&(o-=e),t.min=nx(t.min,e,s,o,n),t.max=nx(t.max,e,s,o,n)}(t,e[s],e[i],e[n],e.scale,r,a)}let ny=["x","scaleX","originX"],nv=["y","scaleY","originY"];function nb(t,e,s,i){ng(t.x,e,ny,s?s.x:void 0,i?i.x:void 0),ng(t.y,e,nv,s?s.y:void 0,i?i.y:void 0)}function nw(t){return 0===t.translate&&1===t.scale}function nj(t){return nw(t.x)&&nw(t.y)}function nk(t,e){return t.min===e.min&&t.max===e.max}function nT(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nN(t,e){return nT(t.x,e.x)&&nT(t.y,e.y)}function nS(t){return iB(t.x)/iB(t.y)}function nP(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nC{constructor(){this.members=[]}add(t){tq(this.members,t),t.scheduleRender()}remove(t){if(tz(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,s=this.members.findIndex(e=>t===e);if(0===s)return!1;for(let t=s;t>=0;t--){let s=this.members[t];if(!1!==s.isPresent){e=s;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender();let i=s.options.layoutDependency,n=t.options.layoutDependency;(void 0===i||void 0===n||i!==n)&&(t.resumeFrom=s,e&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));let{crossfade:r}=t.options;!1===r&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:s}=t;e.onExitComplete&&e.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nA=(t,e)=>t.depth-e.depth;class nM{constructor(){this.children=[],this.isDirty=!1}add(t){tq(this.children,t),this.isDirty=!0}remove(t){tz(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nA),this.isDirty=!1,this.children.forEach(t)}}let nE=["","X","Y","Z"],nV=0;function nD(t,e,s,i){let{latestValues:n}=e;n[t]&&(s[t]=n[t],e.setStaticValue(t,0),i&&(i[t]=0))}function nR({attachResizeListener:t,defaultParent:e,measureScroll:s,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(t={},s=e?.()){this.id=nV++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(nB),this.nodes.forEach(nq),this.nodes.forEach(nz),this.nodes.forEach(nI)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;tM.read(()=>{i=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==i){let e,r;i=t,this.root.updateBlockedByResize=!0,s&&s(),e=tG.now(),r=({timestamp:t})=>{let s=t-e;s>=250&&(tE(r),n(s-250))},tM.setup(r,!0),s=()=>tE(r),i7.hasAnimatedSinceResize&&(i7.hasAnimatedSinceResize=!1,this.nodes.forEach(nH))}})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:s,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||nZ,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!nN(this.targetLayout,i),h=!e&&s;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...sn(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||nH(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tE(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nX),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:s}=e.options;if(!s)return;let i=s.props[e6];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:t,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",tM,!(t||s))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iB(this.snapshot.measuredBox.x)||iB(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=_());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nf(this.prevProjectionDelta.x,this.projectionDelta.x),nf(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iU(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&nP(this.projectionDelta.x,this.prevProjectionDelta.x)&&nP(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=K(),this.projectionDelta=K(),this.projectionDeltaWithTransform=K()}setAnimationOrigin(t,e=!1){let s,i=this.snapshot,n=i?i.latestValues:{},r={...this.latestValues},a=K();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=_(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),d=!h||h.members.length<=1,c=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(n_));this.animationProgress=0,this.mixTargetDelta=e=>{let i=e/1e3;if(nK(a.x,t.x,i),nK(a.y,t.y,i),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,u,m,p,f,x;iW(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=o,x=i,nG(m.x,p.x,f.x,x),nG(m.y,p.y,f.y,x),s&&(h=this.relativeTarget,u=s,nk(h.x,u.x)&&nk(h.y,u.y))&&(this.isProjectionDirty=!1),s||(s=_()),np(s,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,s,i,n,r){n?(t.opacity=ev(0,s.opacity??1,nd(i)),t.opacityExit=ev(e.opacity??1,0,nc(i))):r&&(t.opacity=ev(e.opacity??1,s.opacity??1,i));for(let n=0;n{var e,s,i;let n;i7.hasAnimatedSinceResize=!0,sd.layout++,this.motionValue||(this.motionValue=tZ(0)),this.currentAnimation=(e=this.motionValue,s=[0,1e3],i={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{sd.layout--},onComplete:()=>{sd.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=Z(e)?e:tZ(e)).start(iw("",n,s,i)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:s,layout:i,latestValues:n}=t;if(e&&s&&i){if(this!==t&&this.layout&&i&&n1(this.options.animationType,this.layout.layoutBox,i.layoutBox)){s=this.target||_();let e=iB(this.layout.layoutBox.x);s.x.min=t.target.x.min,s.x.max=s.x.min+e;let i=iB(this.layout.layoutBox.y);s.y.min=t.target.y.min,s.y.max=s.y.min+i}np(e,s),eL(e,n),iU(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nC),this.sharedNodes.get(t).add(e);let s=e.options.initialPromotionConfig;e.promote({transition:s?s.transition:void 0,preserveFollowOpacity:s&&s.shouldPreserveFollowOpacity?s.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:s}={}){let i=this.getStack();i&&i.promote(this,s),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:s}=t;if((s.z||s.rotate||s.rotateX||s.rotateY||s.rotateZ||s.skewX||s.skewY)&&(e=!0),!e)return;let i={};s.z&&nD("z",t,i,this.animationValues);for(let e=0;et.currentAnimation?.stop()),this.root.nodes.forEach(nO),this.root.sharedNodes.clear()}}}function nL(t){t.updateLayout()}function nF(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:s,measuredBox:i}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;"size"===n?iV(t=>{let i=r?e.measuredBox[t]:e.layoutBox[t],n=iB(i);i.min=s[t].min,i.max=i.min+n}):n1(n,e.layoutBox,s)&&iV(i=>{let n=r?e.measuredBox[i]:e.layoutBox[i],a=iB(s[i]);n.max=n.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+a)});let a=K();iU(a,s,e.layoutBox);let o=K();r?iU(o,t.applyTransform(i,!0),e.measuredBox):iU(o,s,e.layoutBox);let l=!nj(a),h=!1;if(!t.resumeFrom){let i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:n,layout:r}=i;if(n&&r){let a=_();iW(a,e.layoutBox,n.layoutBox);let o=_();iW(o,s,r.layoutBox),nN(a,o)||(h=!0),i.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nB(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nI(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nU(t){t.clearSnapshot()}function nO(t){t.clearMeasurements()}function n$(t){t.isLayoutDirty=!1}function nW(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function nH(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nq(t){t.resolveTargetDelta()}function nz(t){t.calcProjection()}function nX(t){t.resetSkewAndRotation()}function nY(t){t.removeLeadSnapshot()}function nK(t,e,s){t.translate=ev(e.translate,0,s),t.scale=ev(e.scale,1,s),t.origin=e.origin,t.originPoint=e.originPoint}function nG(t,e,s,i){t.min=ev(e.min,s.min,i),t.max=ev(e.max,s.max,i)}function n_(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let nZ={duration:.45,ease:[.4,0,.1,1]},nQ=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nJ=nQ("applewebkit/")&&!nQ("chrome/")?Math.round:tS;function n0(t){t.min=nJ(t.min),t.max=nJ(t.max)}function n1(t,e,s){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nS(e)-nS(s)))}function n2(t){return t!==t.root&&t.scroll?.wasRoot}let n5=nR({attachResizeListener:(t,e)=>iL(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),n3={current:void 0},n4=nR({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!n3.current){let t=new n5({});t.mount(window),t.setOptions({layoutScroll:!0}),n3.current=t}return n3.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function n9(t,e){let s=function(t,e,s){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,s=(void 0)??e.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}(t),i=new AbortController;return[s,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function n6(t){return!("touch"===t.pointerType||iF.x||iF.y)}function n7(t,e,s){let{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===s);let n=i["onHover"+s];n&&tM.postRender(()=>n(e,iq(e)))}let n8=(t,e)=>!!e&&(t===e||n8(t,e.parentElement)),rt=new WeakSet;function re(t){return e=>{"Enter"===e.key&&t(e)}}function rs(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function ri(t){return iH(t)&&!(iF.x||iF.y)}function rn(t,e,s){let{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===s);let n=i["onTap"+("End"===s?"":s)];n&&tM.postRender(()=>n(e,iq(e)))}let rr=new WeakMap,ra=new WeakMap,ro=t=>{let e=rr.get(t.target);e&&e(t)},rl=t=>{t.forEach(ro)},rh={some:0,all:1},rd=function(t,e){if("u"se(s,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(n,r)=>"create"===r?i:(s.has(r)||s.set(r,se(r,void 0,t,e)),s.get(r))})}({animation:{Feature:class extends ss{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:s})=>(function(t,e,s={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>iT(t,e,s)));else if("string"==typeof e)i=iT(t,e,s);else{let n="function"==typeof e?si(t,e,s.custom):e;i=Promise.all(ij(t,n,s))}return i.then(()=>{t.notify("AnimationComplete",e)})})(t,e,s))),s=iM(),i=!0,n=e=>(s,i)=>{let n=si(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...i}=n;s={...s,...i,...e}}return s};function r(r){let{props:a}=t,o=function t(e){if(!e)return;if(!e.isControllingVariants){let s=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(s.initial=e.props.initial),s}let s={};for(let t=0;tc&&g,j=!1,k=Array.isArray(x)?x:[x],T=k.reduce(n(p),{});!1===y&&(T={});let{prevResolvedValues:N={}}=f,S={...N,...T},P=e=>{w=!0,h.has(e)&&(j=!0,h.delete(e)),f.needsAnimating[e]=!0;let s=t.getValue(e);s&&(s.liveStyle=!1)};for(let t in S){let e=T[t],s=N[t];if(!d.hasOwnProperty(t))(sr(e)&&sr(s)?iS(e,s):e===s)?void 0!==e&&h.has(t)?P(t):f.protectedKeys[t]=!0:null!=e?P(t):h.add(t)}f.prevProp=x,f.prevResolvedValues=T,f.isActive&&(d={...d,...T}),i&&t.blockInitialAnimation&&(w=!1);let C=v&&b,A=!C||j;w&&A&&l.push(...k.map(e=>{let s={type:p};if("string"==typeof e&&i&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:i}=t,n=si(i,e);if(i.enteringChildren&&n){let{delayChildren:e}=n.transition||{};s.delay=ik(i.enteringChildren,t,e)}}return{animation:e,options:s}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let s=si(t,Array.isArray(a.initial)?a.initial[0]:a.initial);s&&s.transition&&(e.transition=s.transition)}h.forEach(s=>{let i=t.getBaseTarget(s),n=t.getValue(s);n&&(n.liveStyle=!0),e[s]=i??null}),l.push({animation:e})}let p=!!l.length;return i&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(p=!1),i=!1,p?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,i){if(s[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),s[e].isActive=i;let n=r(e);for(let t in s)s[t].protectedKeys={};return n},setAnimateFunction:function(s){e=s(t)},getState:()=>s,reset:()=>{s=iM()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();t5(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends ss{constructor(){super(...arguments),this.id=iE++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends ss{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:s={}}=this.node.getProps(),{root:i,margin:n,amount:r="some",once:a}=s,o={root:i?i.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:rh[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:s,onViewportLeave:i}=this.node.getProps(),n=e?s:i;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let s=t||document;ra.has(s)||ra.set(s,{});let i=ra.get(s),n=JSON.stringify(e);return i[n]||(i[n]=new IntersectionObserver(rl,{root:t,...e})),i[n]}(o),rr.set(t,l),e.observe(t),()=>{rr.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"t[s]!==e[s]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ss{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,s={}){let[i,n,r]=n9(t,s),a=t=>{let i=t.currentTarget;if(!ri(t))return;rt.add(i);let r=e(i,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),rt.has(i)&&rt.delete(i),ri(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,i===window||i===document||s.useGlobalTarget||n8(i,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};return i.forEach(t=>{(s.useGlobalTarget?window:t).addEventListener("pointerdown",a,n),ni(t)&&"offsetHeight"in t&&(t.addEventListener("focus",t=>((t,e)=>{let s=t.currentTarget;if(!s)return;let i=re(()=>{if(rt.has(s))return;rs(s,"down");let t=re(()=>{rs(s,"up")});s.addEventListener("keyup",t,e),s.addEventListener("blur",()=>rs(s,"cancel"),e)});s.addEventListener("keydown",i,e),s.addEventListener("blur",()=>s.removeEventListener("keydown",i),e)})(t,n)),iR(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rn(this.node,e,"Start"),(t,{success:e})=>rn(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends ss{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=sh(iL(this.node.current,"focus",()=>this.onFocus()),iL(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ss{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,s={}){let[i,n,r]=n9(t,s),a=t=>{if(!n6(t))return;let{target:s}=t,i=e(s,t);if("function"!=typeof i||!s)return;let r=t=>{n6(t)&&(i(t),s.removeEventListener("pointerleave",r))};s.addEventListener("pointerleave",r,n)};return i.forEach(t=>{t.addEventListener("pointerenter",a,n)}),r}(t,(t,e)=>(n7(this.node,e,"Start"),t=>n7(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends ss{constructor(){super(...arguments),this.removePointerDownListener=tS}onPointerDown(t){this.session=new iG(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iX(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:i6(t),onStart:i6(e),onMove:s,onEnd:(t,e)=>{delete this.session,i&&tM.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=iz(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ss{constructor(t){super(t),this.removeGroupControls=tS,this.removeListeners=tS,this.controls=new i4(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tS}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:n4,MeasureLayout:ns},layout:{ProjectionNode:n4,MeasureLayout:ns}},(t,e)=>e.isSVG??eU(t)?new eT(e):new eB(e,{allowProjection:t!==a.Fragment}));var rc=t.i(22016),ru=t.i(71689),rm=t.i(75254);let rp=(0,rm.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var rf=t.i(43531);let rx=(0,rm.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var rg=t.i(48256),ry=t.i(63488),rv=t.i(94983),rb=t.i(98919),rw=t.i(18393),rj=t.i(39312);let rk=(0,rm.default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);var rT=t.i(70756),rN=t.i(51975),rS=t.i(88844),rP=t.i(78583),rC=t.i(65261);let rA=(0,rm.default)("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),rM="#0FC259",rE="#0BA24A",rV="#D9FAE7",rD="#F3F6FF",rR="#3E4265",rL="#9397AD",rF="#D4D7E5",rB=(...t)=>t.filter(Boolean).join(" ");function rI(t,e){if(!e)return t;let s=t.includes("?");return t+(s?"&":"?")+`php=${encodeURIComponent(e)}`}function rU({children:t}){return(0,r.jsx)("span",{className:"inline-flex items-center rounded-full border px-2 sm:px-3 py-0.5 sm:py-1 text-[10px] sm:text-xs font-semibold",style:{borderColor:"rgba(34,197,94,.28)",background:"rgba(34,197,94,.10)",color:rE},children:t})}function rO({variant:t="primary",children:e,className:s,href:i,target:n,onClick:a}){return(0,r.jsx)(i?"a":"button",{href:i,target:n,rel:"_blank"===n?"noreferrer":void 0,onClick:a,className:rB("inline-flex items-center justify-center gap-2 rounded-xl px-4 py-2.5 text-sm font-semibold transition active:scale-[.99]","primary"===t?"text-white shadow-sm":"secondary"===t?"border bg-white":"text-slate-700",s),style:"primary"===t?{background:rM}:"secondary"===t?{borderColor:"rgba(34,197,94,.35)",color:rE}:{},children:e})}function r$({eyebrow:t,title:e,desc:s,align:i="center"}){return(0,r.jsxs)("div",{className:rB("mx-auto max-w-3xl","center"===i?"text-center":"text-left"),children:[t&&(0,r.jsxs)("div",{className:rB("mb-3 inline-flex items-center gap-2 rounded-full border px-3 py-1.5","center"===i?"mx-auto":""),style:{borderColor:"rgba(34,197,94,.28)",background:"rgba(34,197,94,.10)",color:rE},children:[(0,r.jsx)(rk,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"}),(0,r.jsx)("span",{className:"text-[10px] sm:text-xs font-extrabold uppercase tracking-wider",children:t})]}),(0,r.jsx)("h2",{className:"text-2xl font-extrabold tracking-tight text-slate-900 md:text-3xl",children:e}),s&&(0,r.jsx)("p",{className:"mt-2 sm:mt-3 text-xs sm:text-sm md:text-base leading-5 sm:leading-6 text-slate-600",children:s})]})}function rW({children:t,className:e}){return(0,r.jsx)("div",{className:rB("rounded-xl sm:rounded-2xl border bg-white p-3 sm:p-4 md:p-5 shadow-sm",e),style:{borderColor:rF},children:t})}function rH({id:t}){return(0,r.jsx)("div",{id:t,className:"scroll-mt-28"})}function rq({q:t,a:e}){let[s,i]=(0,a.useState)(!1);return(0,r.jsxs)("div",{className:"rounded-xl sm:rounded-2xl border bg-white",style:{borderColor:rF},children:[(0,r.jsxs)("button",{onClick:()=>i(t=>!t),className:"flex w-full items-center justify-between gap-2 sm:gap-3 px-3 sm:px-4 md:px-5 py-3 sm:py-4 text-left",children:[(0,r.jsx)("div",{className:"text-xs sm:text-sm md:text-base font-semibold text-slate-900",children:t}),(0,r.jsx)(rx,{className:rB("h-4 w-4 sm:h-5 sm:w-5 text-slate-500 transition shrink-0",s&&"rotate-180")})]}),s&&(0,r.jsx)("div",{className:"px-3 sm:px-4 md:px-5 pb-3 sm:pb-4 md:pb-5 text-xs sm:text-sm leading-5 sm:leading-6 text-slate-600",children:e})]})}let rz={Globe:rg.Globe,Mail:ry.Mail,MessageCircle:rv.MessageCircle,Shield:rb.Shield,Server:rw.Server,Zap:rj.Zap,Lock:rT.Lock,Tag:rN.Tag,Package:rS.Package,FileText:rP.FileText,KeyRound:rC.KeyRound};function rX(t){return rz[t]||rg.Globe}function rY({partner:t,promotions:e,socialReviews:s=[]}){let[i,n]=(0,a.useState)(!1),[o,l]=(0,a.useState)(""),h=(0,a.useRef)(null),[d,c]=(0,a.useState)(""),u=(0,a.useMemo)(()=>[{key:"domain",name:"Tên miền",badge:"Phổ biến",icon:rg.Globe,bullets:["Đăng ký nhanh","Quản lý dễ","Hỗ trợ cấu hình DNS"],price:"Từ 30.000 đ/năm",buyUrl:"https://tino.vn/ten-mien"},{key:"hosting",name:"Cloud Hosting",badge:"Khuyến nghị",icon:rw.Server,bullets:["SSD tối ưu","Backup định kỳ","Tối ưu WordPress"],price:"Từ 29.000 đ/tháng",buyUrl:"https://tino.vn/hosting-gia-re"},{key:"email",name:"Email theo tên miền",icon:ry.Mail,bullets:["Chuyên nghiệp","Chống spam","Hỗ trợ đa thiết bị"],price:"Chỉ từ 0 đ/tháng",buyUrl:"https://tino.vn/tino-mail"},{key:"vps",name:"Cloud VPS",icon:rj.Zap,bullets:["Hiệu năng ổn định","Mở rộng linh hoạt","Triển khai nhanh"],price:"Từ 179.000 đ/tháng",buyUrl:"https://tino.vn/vps-gia-re"},{key:"vps-n8n",name:"VPS N8N",icon:rA,bullets:["Chạy n8n, AI workflow","Miễn phí tên miền","Tự động cài đặt"],price:"Từ 179.000 đ/tháng",buyUrl:"https://tino.vn/vps-n8n"},{key:"ssl",name:"SSL",icon:rT.Lock,bullets:["Mã hoá HTTPS","Tăng uy tín","Cài đặt đơn giản"],price:"Từ 99.000 đ/năm",buyUrl:"https://tino.vn/chung-chi-bao-mat-ssl"}],[]),m=(0,a.useMemo)(()=>[{q:"Tino là gì?",a:"Tino Group là nhà cung cấp dịch vụ hạ tầng số (tên miền, hosting, VPS, email, SSL) uy tín tại Việt Nam, phục vụ cá nhân và doanh nghiệp."},{q:"Đăng ký qua đối tác tư vấn có khác gì mua trực tiếp?",a:"Bạn vẫn mua trực tiếp trên tino.vn với giá chính thức. Đối tác tư vấn hỗ trợ thêm việc chọn gói phù hợp và hướng dẫn triển khai ban đầu."},{q:"Hosting và VPS khác nhau thế nào?",a:"Hosting phù hợp cho website cá nhân, blog, landing page. VPS phù hợp khi bạn cần toàn quyền quản trị server, chạy ứng dụng riêng hoặc cần hiệu năng cao hơn."},{q:"Tôi mới bắt đầu, nên chọn gói nào?",a:"Nếu bạn chỉ cần website đơn giản, chọn Cloud Hosting. Nếu cần chạy tool, n8n, hoặc ứng dụng riêng, chọn Cloud VPS. Liên hệ đối tác tư vấn để được gợi ý cụ thể."},{q:"Thanh toán như thế nào?",a:"Tino hỗ trợ thanh toán qua chuyển khoản ngân hàng, ví điện tử (MoMo, ZaloPay), thẻ Visa/Mastercard và nhiều hình thức khác."},{q:"Có được hỗ trợ kỹ thuật sau khi mua không?",a:"Có. Tino hỗ trợ kỹ thuật 24/7 qua ticket và livechat. Ngoài ra, đối tác tư vấn cũng hỗ trợ bạn trong quá trình sử dụng."}],[]),p=(0,a.useMemo)(()=>[{key:"res-plugin",title:"Plugin WordPress – Starter Pack",meta:"ZIP",icon:rS.Package,pageUrl:"https://tino.vn/tai-nguyen/plugin-wordpress-starter",downloadUrl:"https://tino.vn/download/plugin-wordpress-starter.zip"},{key:"res-theme",title:"Theme Landingpage – Minimal Kit",meta:"ZIP",icon:rS.Package,pageUrl:"https://tino.vn/tai-nguyen/theme-landingpage-minimal",downloadUrl:"https://tino.vn/download/theme-landingpage-minimal.zip"},{key:"res-license",title:"License mẫu – Hướng dẫn kích hoạt",meta:"PDF",icon:rC.KeyRound,pageUrl:"https://tino.vn/tai-nguyen/license-huong-dan",downloadUrl:"https://tino.vn/download/license-huong-dan.pdf"},{key:"res-doc",title:"Tài liệu: Setup Email theo tên miền",meta:"PDF",icon:rP.FileText,pageUrl:"https://tino.vn/tai-nguyen/tai-lieu-email-ten-mien",downloadUrl:"https://tino.vn/download/tai-lieu-email-ten-mien.pdf"},{key:"res-pack-1",title:"Pack UI Icons – Tino",meta:"ZIP",icon:rS.Package,pageUrl:"https://tino.vn/tai-nguyen/pack-ui-icons",downloadUrl:"https://tino.vn/download/pack-ui-icons.zip"},{key:"res-pack-2",title:"Checklist bảo mật website",meta:"PDF",icon:rP.FileText,pageUrl:"https://tino.vn/tai-nguyen/checklist-bao-mat",downloadUrl:"https://tino.vn/download/checklist-bao-mat.pdf"}],[]),f=s.length>0?s:[{name:"Anh H. (SME)",text:"Tư vấn đúng nhu cầu, triển khai nhanh. Mình chọn gói email + SSL là chạy ổn ngay.",rating:5,avatar:null,source:"Google",date:null,link:null},{name:"Chị M. (Marketing)",text:"Được hướng dẫn rõ ràng từ tên miền tới hosting. Không rành kỹ thuật vẫn tự làm được.",rating:5,avatar:null,source:"Google",date:null,link:null},{name:"Bạn T. (Freelancer)",text:"Support phản hồi nhanh, cấu hình DNS & email gọn lẹ. Rất đáng tiền.",rating:5,avatar:null,source:"Google",date:null,link:null}],x=(0,a.useRef)(null),g=()=>{let e=(d||"").trim().replace(/\s+/g,""),s=rI(e?"https://tino.vn/cart/domain?sld="+encodeURIComponent(e):"https://tino.vn/cart/domain",t.affId);window.open(s,"_blank","noopener,noreferrer")},[y,v]=(0,a.useState)({who:"doanh-nghiep",need:"website",scale:"tang-truong"}),b={website:["platinum-hosting"],email:["platinum-workmail"],server:["nvme-vps"],"bao-mat":["sectigossl"]},w={website:["business-hosting","sectigossl"],email:["sectigossl"],server:["pro-amd-vps"],"bao-mat":[]},j={"co-ban":0,"tang-truong":1,"doanh-nghiep":2},[k,T]=(0,a.useState)({}),N=(0,a.useRef)({}),[S,P]=(0,a.useState)([]),[C,A]=(0,a.useState)(!0);(0,a.useEffect)(()=>{fetch("https://tino.vn/backend-api/categories").then(t=>t.ok?t.json():null).then(t=>{if(!t?.categories)return;let e={};for(let s of t.categories)if(s.subcategories)for(let t of Object.values(s.subcategories))e[t.slug]=t.id;T(e)}).catch(()=>{})},[]);let M=async t=>{if(N.current[t])return N.current[t];let e=k[t];if(!e)return[];try{let s=await fetch(`https://tino.vn/backend-api/category/${e}/product`);if(!s.ok)return[];let i=((await s.json()).products||[]).filter(t=>!t.out_of_stock).map(t=>({name:t.name,monthly:(t=>{let e=t.find(t=>"m"===t.value);if(e)return Math.round(parseFloat(e.price));let s=t.find(t=>"a"===t.value);if(s)return Math.round(parseFloat(s.price)/12);if(t.length>0){let e=t[0],s={m:1,q:3,s:6,a:12,b:24,t:36}[e.value]||12;return Math.round(parseFloat(e.price)/s)}return 0})(t.periods)})).sort((t,e)=>t.monthly-e.monthly);return N.current[t]=i,i}catch{return[]}};(0,a.useEffect)(()=>{if(0===Object.keys(k).length)return;let t=!1;return A(!0),(async()=>{let e=j[y.scale]??0,s="doanh-nghiep"===y.who||"doanh-nghiep"===y.scale,i=[...b[y.need]||[]];if(s)for(let t of w[y.need]||[])i.includes(t)||i.push(t);let n=[];for(let t of i){let s=await M(t);if(0===s.length)continue;let i=Math.min(e,s.length-1);n.push(s[i])}t||(P(n),A(!1))})(),()=>{t=!0}},[y,k]);let E=(t,e)=>{if(!t)return;let s=Math.max(300,Math.floor(.85*t.clientWidth));t.scrollBy({left:"left"===e?-s:s,behavior:"smooth"})};(0,a.useEffect)(()=>{let t=["dich-vu","tai-nguyen","uu-dai","danh-gia","faq","lien-he"],e=()=>{for(let e of(n(window.scrollY>40),t)){let t=document.getElementById(e);if(!t)continue;let s=t.getBoundingClientRect();if(s.top<=120&&s.bottom>=120){l(e);break}}};return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)},[]);let V=[{icon:rb.Shield,k:"Bảo mật",v:"Chuẩn doanh nghiệp"},{icon:rj.Zap,k:"Uptime",v:"99.9%"},{icon:rv.MessageCircle,k:"Hỗ trợ",v:"24/7"},{icon:rf.Check,k:"Tin cậy",v:"Nhiều khách hàng chọn"}],D=[{icon:rb.Shield,title:"Bảo mật",desc:"Tiêu chuẩn an toàn cho hạ tầng số."},{icon:rw.Server,title:"Ổn định",desc:"Tối ưu vận hành cho website và doanh nghiệp."},{icon:rj.Zap,title:"Hiệu năng",desc:"Tốc độ nhanh, dễ mở rộng khi tăng trưởng."},{icon:rf.Check,title:"Hỗ trợ",desc:"Hướng dẫn triển khai rõ ràng, dễ làm theo."}];return(0,r.jsxs)("div",{className:"min-h-screen overflow-x-hidden bg-white text-slate-900",children:[(0,r.jsx)("style",{children:` :root{--tino-green:${rM};--tino-green-dark:${rE};--tino-navy:#0C091A;--bg-soft:${rD};} @keyframes tinoGlow{0%,100%{transform:translate3d(0,0,0) scale(1);opacity:.55}50%{transform:translate3d(0,-2px,0) scale(1.04);opacity:.85}} @keyframes tinoPulse{0%,100%{transform:scale(1);opacity:.9}50%{transform:scale(1.06);opacity:1}} @keyframes tinoShimmer{0%{transform:translateX(-35%)}100%{transform:translateX(35%)}} .promo-glow{animation:tinoGlow 3.2s ease-in-out infinite;filter:blur(22px)} .promo-pulse{animation:tinoPulse 2.2s ease-in-out infinite} .promo-shimmer{position:relative} .promo-shimmer:before{content:"";position:absolute;inset:-1px;pointer-events:none;border-radius:20px;background:linear-gradient(90deg, rgba(15,194,89,.0), rgba(15,194,89,.38), rgba(15,194,89,.0));opacity:0;transform:translateX(-35%)} .promo-shimmer:hover:before{opacity:1;animation:tinoShimmer .9s ease-out forwards} @keyframes tinoMarquee{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(-50%,0,0)}} .marquee{position:relative;overflow:hidden} .marquee-track{display:flex;gap:12px;will-change:transform;animation:tinoMarquee 26s linear infinite} .marquee:hover .marquee-track{animation-play-state:paused} .marquee-fade:before,.marquee-fade:after{content:"";position:absolute;top:0;bottom:0;width:72px;pointer-events:none;z-index:2} .marquee-fade:before{left:0;background:linear-gradient(90deg, rgba(243,246,255,1), rgba(243,246,255,0))} .marquee-fade:after{right:0;background:linear-gradient(270deg, rgba(243,246,255,1), rgba(243,246,255,0))} `}),(0,r.jsx)("header",{className:rB("sticky top-0 z-50 border-b bg-white/80 backdrop-blur transition-all",i?"py-0.5 sm:py-1":"py-1 sm:py-2"),style:{borderColor:rF},children:(0,r.jsxs)("div",{className:"mx-auto flex max-w-6xl items-center justify-between px-4 py-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,r.jsxs)("div",{className:"relative",children:[t.profileImage?(0,r.jsx)("img",{src:t.profileImage,alt:t.name,className:"h-8 w-8 sm:h-10 sm:w-10 rounded-full border object-cover",style:{borderColor:"rgba(34,197,94,.35)"}}):(0,r.jsx)("div",{className:"flex h-8 w-8 sm:h-10 sm:w-10 items-center justify-center rounded-full border text-base sm:text-lg font-bold",style:{borderColor:"rgba(34,197,94,.35)",background:rV,color:rE},children:t.name.charAt(0)}),(0,r.jsx)("span",{className:"absolute -bottom-1 -right-1 inline-flex items-center justify-center rounded-full border bg-white p-0.5",style:{borderColor:"rgba(34,197,94,.35)"},children:(0,r.jsx)(rf.Check,{className:"h-2.5 w-2.5 sm:h-3 sm:w-3",style:{color:rE}})})]}),(0,r.jsxs)("div",{className:"leading-tight hidden xs:block sm:block",children:[(0,r.jsx)("div",{className:"text-xs sm:text-sm font-extrabold",style:{color:"#0C091A"},children:t.name}),(0,r.jsx)("div",{className:"text-[10px] sm:text-[11px]",style:{color:rL},children:"Đã xác thực"})]})]}),(0,r.jsx)("nav",{className:"hidden lg:flex",children:(0,r.jsx)("div",{className:rB("flex items-center gap-0.5 sm:gap-1 rounded-full border bg-white/70 px-1 text-xs sm:text-sm font-semibold backdrop-blur transition-all",i?"py-0.5":"py-0.5 sm:py-1"),style:{borderColor:"rgba(34,197,94,.28)"},children:[{href:"#dich-vu",label:"Dịch vụ",id:"dich-vu"},{href:"#tai-nguyen",label:"Tài nguyên",id:"tai-nguyen"},{href:"#uu-dai",label:"Ưu đãi",id:"uu-dai"},{href:"#danh-gia",label:"Đánh giá",id:"danh-gia"},{href:"#faq",label:"Câu hỏi",id:"faq"},{href:"#lien-he",label:"Liên hệ",id:"lien-he"}].map(t=>(0,r.jsx)("a",{href:t.href,className:rB("relative rounded-full px-3 sm:px-4 py-1.5 sm:py-2 transition",o===t.id?"text-white":"text-slate-700 hover:text-slate-900"),style:o===t.id?{background:rM}:void 0,children:t.label},t.href))})}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[(0,r.jsx)(rO,{variant:"secondary",className:"hidden lg:inline-flex",href:"#lien-he",children:"Nhận tư vấn"}),(0,r.jsxs)(rO,{variant:"primary",href:"#dich-vu",className:"text-xs sm:text-sm px-3 sm:px-4 py-2 sm:py-2.5",children:[(0,r.jsx)("span",{className:"hidden sm:inline",children:"Đăng ký dịch vụ"}),(0,r.jsx)("span",{className:"sm:hidden",children:"Đăng ký"}),(0,r.jsx)(rp,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"})]})]})]})}),(0,r.jsxs)("main",{children:[(0,r.jsx)("section",{className:"bg-white",children:(0,r.jsx)("div",{className:"mx-auto max-w-6xl px-4 py-10 md:py-16",children:(0,r.jsxs)("div",{className:"grid items-start gap-6 sm:gap-8 md:gap-10 lg:gap-12 md:grid-cols-2",children:[(0,r.jsxs)(rd.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5},children:[(0,r.jsxs)("h1",{className:"text-2xl md:text-3xl font-extrabold tracking-tight leading-snug md:leading-snug text-slate-900",children:["Tư vấn & đăng ký dịch vụ"," ",(0,r.jsx)("span",{className:"relative inline-flex items-center",children:(0,r.jsxs)("span",{className:"group relative inline-flex items-center gap-0.5 sm:gap-1 px-0.5 sm:px-1",children:[(0,r.jsx)("span",{style:{color:rE},children:"Tino"}),(0,r.jsx)(rx,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4",style:{color:rE}}),(0,r.jsx)("span",{className:"pointer-events-none absolute left-0 top-full z-20 mt-2 w-[240px] sm:w-[280px] opacity-0 transition group-hover:pointer-events-auto group-hover:opacity-100",children:(0,r.jsxs)("span",{className:"block rounded-xl sm:rounded-2xl border bg-white p-3 sm:p-4 shadow-lg",style:{borderColor:"rgba(34,197,94,.28)"},children:[(0,r.jsxs)("span",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("span",{className:"text-[10px] sm:text-xs font-extrabold uppercase tracking-wider",style:{color:rE},children:"Advisor Verified"}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-0.5 sm:gap-1 rounded-full border px-1.5 sm:px-2 py-0.5 text-[10px] sm:text-[11px] font-semibold",style:{background:"rgba(34,197,94,.10)",borderColor:"rgba(34,197,94,.28)",color:rE},children:[(0,r.jsx)(rf.Check,{className:"h-2.5 w-2.5 sm:h-3 sm:w-3"})," ","Verified"]})]}),(0,r.jsx)("span",{className:"mt-1.5 sm:mt-2 block text-xs sm:text-sm font-extrabold text-slate-900",children:t.name}),(0,r.jsx)("span",{className:"mt-0.5 sm:mt-1 block text-[11px] sm:text-xs leading-4 sm:leading-5",style:{color:rR},children:"Đối tác Tư vấn được Tino xác thực · Tino Certified. Mọi đăng ký sẽ mở trang chính thức trên tino.vn."}),(0,r.jsx)("span",{className:"mt-2 sm:mt-3 block",children:(0,r.jsxs)("a",{href:rI("https://tino.vn",t.affId),target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1.5 sm:gap-2 rounded-lg sm:rounded-xl border px-2.5 sm:px-3 py-1.5 sm:py-2 text-[11px] sm:text-xs font-semibold",style:{borderColor:"rgba(34,197,94,.35)",color:rE},children:["Mở tino.vn"," ",(0,r.jsx)(rp,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"})]})})]})})]})}),(0,r.jsx)("br",{}),"cùng Đối tác Tư vấn của bạn"]}),(0,r.jsxs)("div",{className:"mt-3 sm:mt-4 flex items-center gap-2 sm:gap-3",children:[t.profileImage?(0,r.jsx)("img",{src:t.profileImage,alt:t.name,className:"h-11 w-11 sm:h-14 sm:w-14 rounded-full border object-cover",style:{borderColor:"rgba(15,194,89,.35)"}}):(0,r.jsx)("div",{className:"flex h-11 w-11 sm:h-14 sm:w-14 items-center justify-center rounded-full border text-lg sm:text-xl font-bold",style:{borderColor:"rgba(15,194,89,.35)",background:rV,color:rE},children:t.name.charAt(0)}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,r.jsx)("div",{className:"text-xs sm:text-sm font-extrabold text-slate-900",children:t.name}),(0,r.jsxs)("span",{className:"inline-flex items-center gap-0.5 sm:gap-1 rounded-full border px-1.5 sm:px-2 py-0.5 text-[10px] sm:text-[11px] font-semibold",style:{background:"rgba(34,197,94,.10)",borderColor:"rgba(34,197,94,.28)",color:rE},children:[(0,r.jsx)(rf.Check,{className:"h-2.5 w-2.5 sm:h-3 sm:w-3"})," Đã xác thực"]}),(0,r.jsx)("span",{className:"hidden sm:inline-flex items-center rounded-full border px-1.5 sm:px-2 py-0.5 text-[10px] sm:text-[11px] font-semibold",style:{background:"rgba(34,197,94,.06)",borderColor:"rgba(34,197,94,.18)",color:rR},children:"Chứng nhận bởi Tino Group"})]})})]}),(0,r.jsx)("p",{className:"mt-3 sm:mt-4 max-w-xl text-xs sm:text-sm md:text-base leading-5 sm:leading-6 text-slate-600",children:t.bioShort||"Chọn đúng dịch vụ Tino, triển khai nhanh, dùng ổn định."}),(0,r.jsx)("div",{className:"mt-3 sm:mt-4",children:(0,r.jsx)("div",{className:"grid grid-cols-2 gap-1.5 sm:gap-2",children:V.map(t=>(0,r.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 rounded-lg sm:rounded-xl border bg-white px-2 sm:px-3 py-1.5 sm:py-2",style:{borderColor:"rgba(34,197,94,.22)",background:"rgba(34,197,94,.06)"},children:[(0,r.jsx)(t.icon,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4 shrink-0",style:{color:rE}}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"text-[10px] sm:text-[11px] font-extrabold text-slate-800 truncate",children:t.k}),(0,r.jsx)("div",{className:"text-[10px] sm:text-[11px] leading-3 sm:leading-4 truncate",style:{color:rR},children:t.v})]})]},t.k))})}),(0,r.jsxs)("div",{className:"mt-4 sm:mt-6 flex flex-wrap items-center gap-2 sm:gap-3",children:[(0,r.jsxs)(rO,{variant:"primary",href:"#dich-vu",className:"text-xs sm:text-sm px-3 sm:px-4 py-2 sm:py-2.5",children:["Chọn dịch vụ"," ",(0,r.jsx)(rp,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"})]}),(0,r.jsx)(rO,{variant:"secondary",href:"#lien-he",className:"text-xs sm:text-sm px-3 sm:px-4 py-2 sm:py-2.5",children:"Liên hệ tư vấn"})]}),(0,r.jsx)("div",{className:"mt-4 sm:mt-6 grid grid-cols-3 gap-1.5 sm:gap-2",children:[{icon:rb.Shield,label:"Bảo mật"},{icon:rw.Server,label:"Ổn định"},{icon:rf.Check,label:"Hỗ trợ rõ ràng"}].map((t,e)=>(0,r.jsxs)("div",{className:"flex items-center justify-center gap-1 sm:gap-2 rounded-lg sm:rounded-xl border bg-white px-2 sm:px-3 py-1.5 sm:py-2",style:{borderColor:rF},children:[(0,r.jsx)(t.icon,{className:"h-3 w-3 sm:h-4 sm:w-4 shrink-0",style:{color:rE}}),(0,r.jsx)("span",{className:"text-[10px] sm:text-xs font-semibold text-slate-700",children:t.label})]},e))}),e.length>0&&(0,r.jsxs)("div",{className:"mt-5 sm:mt-7",children:[(0,r.jsx)(rH,{id:"uu-dai"}),(0,r.jsxs)("div",{className:"relative flex items-end justify-between gap-2 sm:gap-3",children:[(0,r.jsx)("div",{className:"promo-glow pointer-events-none absolute -left-6 -top-6 h-24 w-72 rounded-full hidden sm:block",style:{background:"radial-gradient(closest-side, rgba(15,194,89,.28), rgba(15,194,89,0))"}}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 text-xs sm:text-sm font-extrabold text-slate-900",children:[(0,r.jsx)("span",{children:"Ưu đãi nổi bật"}),(0,r.jsxs)("span",{className:"relative inline-flex items-center gap-0.5 sm:gap-1 rounded-full border px-1.5 sm:px-2 py-0.5 text-[9px] sm:text-[11px] font-semibold shrink-0",style:{borderColor:"rgba(15,194,89,.30)",background:"rgba(15,194,89,.10)",color:rE},children:[(0,r.jsxs)("span",{className:"relative inline-flex h-1.5 w-1.5 sm:h-2 sm:w-2",children:[(0,r.jsx)("span",{className:"absolute inline-flex h-full w-full rounded-full opacity-40 promo-pulse",style:{background:rE}}),(0,r.jsx)("span",{className:"relative inline-flex h-1.5 w-1.5 sm:h-2 sm:w-2 rounded-full",style:{background:rE}})]}),"Hot"]})]})}),(0,r.jsxs)("div",{className:"hidden items-center gap-1.5 sm:gap-2 sm:flex shrink-0",children:[(0,r.jsx)("button",{onClick:()=>E(h.current,"left"),className:"inline-flex h-7 w-7 sm:h-8 sm:w-8 items-center justify-center rounded-lg sm:rounded-xl border bg-white",style:{borderColor:rF},"aria-label":"Promo previous",children:(0,r.jsx)(ru.ArrowLeft,{className:"h-3 w-3 sm:h-3.5 sm:w-3.5 text-slate-600"})}),(0,r.jsx)("button",{onClick:()=>E(h.current,"right"),className:"inline-flex h-7 w-7 sm:h-8 sm:w-8 items-center justify-center rounded-lg sm:rounded-xl border bg-white",style:{borderColor:rF},"aria-label":"Promo next",children:(0,r.jsx)(rp,{className:"h-3 w-3 sm:h-3.5 sm:w-3.5 text-slate-600"})})]})]}),(0,r.jsx)("div",{className:"mt-2.5 grid grid-cols-2 gap-1.5 sm:hidden",children:e.map(t=>{let e=rX(t.icon);return(0,r.jsxs)(rc.default,{href:`/uu-dai/${t.key}`,className:"flex flex-col rounded-lg border bg-white p-2.5 active:bg-slate-50",style:{borderColor:"rgba(34,197,94,.28)"},children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,r.jsx)("div",{className:rB("flex h-7 w-7 items-center justify-center rounded-lg shrink-0","promo-email"===t.key?"promo-pulse":""),style:{background:"rgba(34,197,94,.10)",color:rE},children:(0,r.jsx)(e,{className:"h-3.5 w-3.5"})}),(0,r.jsx)("span",{className:"shrink-0 rounded-full px-1.5 py-0.5 text-[8px] font-semibold",style:{background:"rgba(34,197,94,.10)",color:rE},children:t.badge})]}),(0,r.jsx)("div",{className:"mt-1.5 text-[11px] font-extrabold text-slate-900 line-clamp-2 leading-[14px]",children:t.title}),(0,r.jsxs)("div",{className:"mt-auto pt-1.5 inline-flex items-center gap-1 text-[10px] font-semibold",style:{color:rE},children:["Xem chi tiết",(0,r.jsx)(rp,{className:"h-2.5 w-2.5"})]})]},t.key)})}),(0,r.jsx)("div",{ref:h,className:"hidden sm:flex mt-4 gap-3 overflow-x-auto pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:{scrollSnapType:"x mandatory"},children:e.map(t=>{let e=rX(t.icon);return(0,r.jsx)(rd.a,{href:`/uu-dai/${t.key}`,whileHover:{y:-3},transition:{duration:.2},className:"group promo-shimmer relative min-w-[300px] snap-start rounded-2xl border bg-white p-4 shadow-sm",style:{borderColor:"rgba(34,197,94,.28)",scrollSnapAlign:"start"},children:(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("div",{className:rB("flex h-10 w-10 items-center justify-center rounded-2xl shrink-0","promo-email"===t.key?"promo-pulse":""),style:{background:"rgba(34,197,94,.10)",color:rE},children:(0,r.jsx)(e,{className:"h-5 w-5"})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"truncate text-sm font-extrabold text-slate-900",children:t.title}),(0,r.jsx)("span",{className:"shrink-0 rounded-full px-2 py-0.5 text-[11px] font-semibold",style:{background:"rgba(34,197,94,.10)",color:rE},children:t.badge})]}),(0,r.jsx)("div",{className:"mt-1 line-clamp-2 text-xs leading-5 text-slate-600",children:t.desc.replace(/<[^>]*>/g,"").trim()}),(0,r.jsxs)("div",{className:"mt-2 inline-flex items-center gap-2 text-xs font-semibold",style:{color:rE},children:["Xem ưu đãi ",(0,r.jsx)(rp,{className:"h-4 w-4"})]})]})]})},t.key)})})]})]}),(0,r.jsx)(rd.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.6,delay:.05},children:(0,r.jsxs)("div",{className:"relative overflow-hidden rounded-xl sm:rounded-3xl border bg-[linear-gradient(135deg,rgba(34,197,94,.14),rgba(34,197,94,.03))] p-3 sm:p-5 md:p-6",style:{borderColor:"rgba(34,197,94,.28)"},children:[(0,r.jsx)("div",{className:"absolute -right-10 -top-10 h-32 w-32 sm:h-48 sm:w-48 rounded-full",style:{background:"rgba(34,197,94,.15)"}}),(0,r.jsx)("div",{className:"absolute -bottom-12 -left-12 h-40 w-40 sm:h-56 sm:w-56 rounded-full",style:{background:"rgba(34,197,94,.10)"}}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-xs sm:text-sm font-extrabold text-slate-900",children:"Gợi ý nhanh"}),(0,r.jsx)("div",{className:"mt-0.5 sm:mt-1 text-[11px] sm:text-xs text-slate-600",children:"Chọn nhanh để xem gợi ý."})]}),(0,r.jsx)(rU,{children:"Advisor"})]}),(0,r.jsxs)("div",{className:"mt-3 sm:hidden",children:[(0,r.jsxs)("div",{className:"rounded-lg border bg-white p-2.5 space-y-2.5",style:{borderColor:rF},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-[10px] font-semibold text-slate-500 uppercase tracking-wide",children:"Đối tượng"}),(0,r.jsx)("div",{className:"mt-1 flex flex-wrap gap-1",children:[{k:"ca-nhan",t:"Cá nhân"},{k:"doanh-nghiep",t:"DN"}].map(t=>(0,r.jsx)("button",{onClick:()=>v(e=>({...e,who:t.k})),className:rB("rounded-md border px-2 py-1 text-[10px] font-semibold",y.who===t.k?"text-white":"text-slate-600"),style:y.who===t.k?{background:rM,borderColor:"rgba(34,197,94,.35)"}:{borderColor:rF,background:"white"},children:t.t},t.k))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-[10px] font-semibold text-slate-500 uppercase tracking-wide",children:"Nhu cầu"}),(0,r.jsx)("div",{className:"mt-1 flex flex-wrap gap-1",children:[{k:"website",t:"Website"},{k:"email",t:"Email"},{k:"server",t:"Server"},{k:"bao-mat",t:"Bảo mật"}].map(t=>(0,r.jsx)("button",{onClick:()=>v(e=>({...e,need:t.k})),className:rB("rounded-md border px-2 py-1 text-[10px] font-semibold",y.need===t.k?"text-white":"text-slate-600"),style:y.need===t.k?{background:rM,borderColor:"rgba(34,197,94,.35)"}:{borderColor:rF,background:"white"},children:t.t},t.k))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-[10px] font-semibold text-slate-500 uppercase tracking-wide",children:"Quy mô"}),(0,r.jsx)("div",{className:"mt-1 flex flex-wrap gap-1",children:[{k:"co-ban",t:"Cơ bản"},{k:"tang-truong",t:"Tăng trưởng"},{k:"doanh-nghiep",t:"DN"}].map(t=>(0,r.jsx)("button",{onClick:()=>v(e=>({...e,scale:t.k})),className:rB("rounded-md border px-2 py-1 text-[10px] font-semibold",y.scale===t.k?"text-white":"text-slate-600"),style:y.scale===t.k?{background:rM,borderColor:"rgba(34,197,94,.35)"}:{borderColor:rF,background:"white"},children:t.t},t.k))})]})]}),(0,r.jsx)("div",{className:"mt-2 rounded-lg border bg-white p-2.5",style:{borderColor:rF},children:C?(0,r.jsxs)("div",{className:"animate-pulse space-y-2",children:[(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)("div",{className:"h-4 w-16 rounded bg-slate-100"}),(0,r.jsx)("div",{className:"h-4 w-12 rounded bg-slate-100"})]}),(0,r.jsx)("div",{className:"h-3 w-24 rounded bg-slate-50"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("div",{className:"flex flex-wrap gap-1 flex-1 min-w-0",children:S.map(t=>(0,r.jsx)("span",{className:"rounded-md px-2 py-0.5 text-[10px] font-semibold",style:{background:"rgba(34,197,94,.10)",color:rE},children:t.name},t.name))}),(0,r.jsxs)("span",{className:"text-xs font-extrabold shrink-0",style:{color:rE},children:["~",Math.round(S.reduce((t,e)=>t+e.monthly,0)).toLocaleString("vi-VN"),"đ/th"]})]}),(0,r.jsxs)("div",{className:"mt-2 flex gap-1.5",children:[(0,r.jsxs)(rO,{variant:"primary",href:"#dich-vu",className:"flex-1 text-[10px] py-1.5",children:["Xem dịch vụ",(0,r.jsx)(rp,{className:"h-3 w-3"})]}),(0,r.jsx)("button",{type:"button",onClick:()=>document.getElementById("lien-he")?.scrollIntoView({behavior:"smooth"}),className:"flex-1 rounded-lg border px-2 py-1.5 text-[10px] font-semibold",style:{borderColor:"rgba(34,197,94,.35)",color:rE},children:"Tư vấn thêm"})]})]})})]}),(0,r.jsxs)("div",{className:"mt-5 hidden sm:grid gap-3",children:[(0,r.jsxs)(rW,{className:"p-4",children:[(0,r.jsx)("div",{className:"text-xs font-semibold text-slate-700",children:"Bạn cần cho"}),(0,r.jsx)("div",{className:"mt-2 flex flex-wrap gap-2",children:[{k:"ca-nhan",t:"Cá nhân"},{k:"doanh-nghiep",t:"Doanh nghiệp"}].map(t=>(0,r.jsx)("button",{onClick:()=>v(e=>({...e,who:t.k})),className:rB("rounded-xl border px-3 py-2 text-xs font-semibold",y.who===t.k?"text-white":"text-slate-700"),style:y.who===t.k?{background:rM,borderColor:"rgba(34,197,94,.35)"}:{borderColor:rF,background:"white"},children:t.t},t.k))})]}),(0,r.jsxs)(rW,{className:"p-4",children:[(0,r.jsx)("div",{className:"text-xs font-semibold text-slate-700",children:"Nhu cầu chính"}),(0,r.jsx)("div",{className:"mt-2 flex flex-wrap gap-2",children:[{k:"website",t:"Website"},{k:"email",t:"Email"},{k:"server",t:"Server"},{k:"bao-mat",t:"Bảo mật"}].map(t=>(0,r.jsx)("button",{onClick:()=>v(e=>({...e,need:t.k})),className:rB("rounded-xl border px-3 py-2 text-xs font-semibold",y.need===t.k?"text-white":"text-slate-700"),style:y.need===t.k?{background:rM,borderColor:"rgba(34,197,94,.35)"}:{borderColor:rF,background:"white"},children:t.t},t.k))})]}),(0,r.jsxs)(rW,{className:"p-4",children:[(0,r.jsx)("div",{className:"text-xs font-semibold text-slate-700",children:"Quy mô"}),(0,r.jsx)("div",{className:"mt-2 flex flex-wrap gap-2",children:[{k:"co-ban",t:"Cơ bản"},{k:"tang-truong",t:"Tăng trưởng"},{k:"doanh-nghiep",t:"Doanh nghiệp"}].map(t=>(0,r.jsx)("button",{onClick:()=>v(e=>({...e,scale:t.k})),className:rB("rounded-xl border px-3 py-2 text-xs font-semibold",y.scale===t.k?"text-white":"text-slate-700"),style:y.scale===t.k?{background:rM,borderColor:"rgba(34,197,94,.35)"}:{borderColor:rF,background:"white"},children:t.t},t.k))})]}),(0,r.jsxs)("div",{className:"rounded-2xl border bg-white p-4",style:{borderColor:rF},children:[(0,r.jsx)("div",{className:"text-xs font-semibold text-slate-700",children:"Đề xuất cho bạn"}),C?(0,r.jsxs)("div",{className:"mt-2 animate-pulse space-y-3",children:[(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("div",{className:"h-6 w-24 rounded-xl bg-slate-100"}),(0,r.jsx)("div",{className:"h-6 w-16 rounded-xl bg-slate-100"})]}),(0,r.jsxs)("div",{className:"rounded-xl border p-2",style:{borderColor:rF},children:[(0,r.jsx)("div",{className:"h-4 w-40 rounded bg-slate-100"}),(0,r.jsx)("div",{className:"mt-2 h-3 w-24 rounded bg-slate-50"})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mt-2 flex flex-wrap gap-2",children:S.map(t=>(0,r.jsx)("span",{className:"rounded-xl px-3 py-1.5 text-xs font-semibold",style:{background:"rgba(34,197,94,.10)",color:rE},children:t.name},t.name))}),(0,r.jsxs)("div",{className:"mt-3 rounded-xl border px-3 py-2 text-sm",style:{borderColor:rF},children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"font-semibold text-slate-700",children:"Tổng chi phí / tháng (ước tính)"}),(0,r.jsxs)("span",{className:"font-extrabold",style:{color:rE},children:[Math.round(S.reduce((t,e)=>t+e.monthly,0)).toLocaleString("vi-VN")," ","đ"]})]}),(0,r.jsx)("div",{className:"mt-2 text-xs text-slate-500",children:"Ước tính tham khảo"})]}),(0,r.jsxs)("div",{className:"mt-4 grid gap-2",children:[(0,r.jsxs)(rO,{variant:"primary",href:"#dich-vu",className:"w-full text-sm py-2.5",children:["Xem dịch vụ ",(0,r.jsx)(rp,{className:"h-4 w-4"})]}),(0,r.jsx)("button",{type:"button",onClick:()=>document.getElementById("lien-he")?.scrollIntoView({behavior:"smooth"}),className:"w-full rounded-xl border px-4 py-2 text-xs font-semibold",style:{borderColor:"rgba(34,197,94,.35)",color:rE},children:"Tối ưu chi phí giúp tôi"})]})]})]})]})]})]})})]})})}),(0,r.jsxs)("section",{style:{background:rD},className:"border-y",children:[(0,r.jsx)(rH,{id:"lien-he"}),(0,r.jsx)("div",{className:"mx-auto max-w-6xl px-4 py-12",children:(0,r.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 md:gap-10",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(r$,{align:"left",eyebrow:"GIỚI THIỆU",title:"Một đối tác tư vấn đúng việc — nhanh, rõ, dễ triển khai",desc:"Tư vấn chọn dịch vụ phù hợp và hỗ trợ triển khai ban đầu."}),(0,r.jsx)("div",{className:"mt-4 sm:mt-6 grid gap-2 sm:gap-3",children:["Tư vấn chọn gói theo nhu cầu","Hỗ trợ triển khai ban đầu","Đồng hành trong quá trình sử dụng"].map(t=>(0,r.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 rounded-lg sm:rounded-xl bg-white px-2.5 sm:px-3 py-2 sm:py-2.5",style:{border:`1px solid ${rF}`},children:[(0,r.jsx)(rf.Check,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4 shrink-0",style:{color:rE}}),(0,r.jsx)("span",{className:"text-xs sm:text-sm font-semibold text-slate-700",children:t})]},t))}),(0,r.jsx)("div",{className:"mt-4 sm:mt-6 grid grid-cols-3 gap-2 sm:gap-3",children:[{k:"Triển khai",v:"~5 phút"},{k:"Hỗ trợ 1-1",v:"Rõ ràng"},{k:"Dễ nâng cấp",v:"Khi cần"}].map(t=>(0,r.jsxs)("div",{className:"rounded-xl sm:rounded-2xl border bg-white p-2.5 sm:p-4",style:{borderColor:rF},children:[(0,r.jsx)("div",{className:"text-[10px] sm:text-xs font-semibold",style:{color:rE},children:t.k}),(0,r.jsx)("div",{className:"mt-0.5 sm:mt-1 text-xs sm:text-sm font-extrabold text-slate-900",children:t.v})]},t.k))})]}),(0,r.jsxs)(rW,{className:"p-4 sm:p-5 md:p-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-xs sm:text-sm font-extrabold text-slate-900",children:"Liên hệ nhanh"}),(0,r.jsx)("p",{className:"mt-0.5 sm:mt-1 text-xs sm:text-sm text-slate-600",children:"Chọn kênh bạn tiện nhất, mình phản hồi sớm."})]}),(0,r.jsx)("div",{className:"mt-4 sm:mt-5 grid gap-2 sm:gap-3",children:t.socials.map(t=>{let e=rX(t.icon||"Globe");return(0,r.jsxs)("a",{href:t.url,target:"_blank",rel:"noreferrer",className:"flex items-center justify-between rounded-xl sm:rounded-2xl border bg-white px-3 sm:px-4 py-2.5 sm:py-3 hover:bg-slate-50",style:{borderColor:rF},children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,r.jsx)("span",{style:{color:rE},children:(0,r.jsx)(e,{className:"h-4 w-4 sm:h-5 sm:w-5"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-xs sm:text-sm font-semibold text-slate-900",children:t.title}),(0,r.jsx)("div",{className:"text-[10px] sm:text-xs text-slate-500",children:"Nhấn để mở"})]})]}),(0,r.jsx)(rp,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4 text-slate-400"})]},t.title)})}),(0,r.jsxs)("div",{className:"mt-4 sm:mt-5 rounded-xl sm:rounded-2xl p-3 sm:p-4",style:{background:"rgba(34,197,94,.08)"},children:[(0,r.jsx)("div",{className:"text-[11px] sm:text-xs font-semibold",style:{color:rE},children:"Tip"}),(0,r.jsx)("div",{className:"mt-0.5 sm:mt-1 text-xs sm:text-sm text-slate-700",children:'Nếu bạn chưa rõ chọn gì, cứ nhắn "mục tiêu + ngân sách", mình gợi ý 1–2 phương án nhanh nhất.'})]})]})]})})]}),(0,r.jsxs)("section",{className:"bg-white",children:[(0,r.jsx)(rH,{id:"dich-vu"}),(0,r.jsxs)("div",{className:"mx-auto max-w-6xl px-4 py-10 md:py-16",children:[(0,r.jsx)(r$,{eyebrow:"DỊCH VỤ",title:"Chọn dịch vụ — xem chi tiết & đăng ký tại tino.vn",desc:"Bấm đăng ký để mở trang chính thức của Tino."}),(0,r.jsx)("div",{className:"mx-auto mt-4 sm:mt-6 max-w-3xl",children:(0,r.jsxs)("div",{className:"flex flex-col gap-2 rounded-xl sm:rounded-2xl border bg-white p-2 sm:p-3 shadow-sm sm:flex-row sm:items-center",style:{borderColor:rF},children:[(0,r.jsx)("input",{type:"text",value:d,onChange:t=>c(t.target.value),onKeyDown:t=>{"Enter"===t.key&&g()},placeholder:"Nhập tên miền bạn muốn kiểm tra (vd: tencongty)",className:"flex-1 rounded-lg sm:rounded-xl border px-3 sm:px-4 py-2 text-xs sm:text-sm focus:outline-none",style:{borderColor:rF}}),(0,r.jsxs)("button",{type:"button",onClick:g,className:"inline-flex items-center justify-center gap-1.5 sm:gap-2 rounded-lg sm:rounded-xl px-3 sm:px-4 py-2 text-xs sm:text-sm font-semibold text-white",style:{background:rM},children:["Kiểm tra ",(0,r.jsx)(rp,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"})]})]})}),u.length>0&&(0,r.jsx)("div",{className:"mt-6 sm:mt-8 grid gap-3 sm:gap-4 sm:grid-cols-2 lg:grid-cols-3",children:u.map(e=>{let s=e.icon;return(0,r.jsx)(rd.div,{whileHover:{y:-3},transition:{duration:.2},className:"group",children:(0,r.jsxs)("div",{className:"h-full rounded-xl sm:rounded-2xl border bg-white p-3 sm:p-4 md:p-5 shadow-sm transition",style:{borderColor:rF},children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-2 sm:gap-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,r.jsx)("div",{className:"flex h-9 w-9 sm:h-11 sm:w-11 items-center justify-center rounded-xl sm:rounded-2xl shrink-0",style:{background:"rgba(34,197,94,.10)",color:rE},children:(0,r.jsx)(s,{className:"h-4 w-4 sm:h-5 sm:w-5"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-xs sm:text-sm font-extrabold text-slate-900",children:e.name}),(0,r.jsx)("div",{className:"text-[10px] sm:text-xs text-slate-500",children:e.price})]})]}),e.badge?(0,r.jsx)(rU,{children:e.badge}):null]}),(0,r.jsx)("ul",{className:"mt-3 sm:mt-4 space-y-1.5 sm:space-y-2",children:e.bullets.map(t=>(0,r.jsxs)("li",{className:"flex items-start gap-1.5 sm:gap-2 text-xs sm:text-sm text-slate-600",children:[(0,r.jsx)(rf.Check,{className:"mt-0.5 h-3.5 w-3.5 sm:h-4 sm:w-4 shrink-0",style:{color:rE}}),(0,r.jsx)("span",{children:t})]},t))}),(0,r.jsxs)("div",{className:"mt-4 sm:mt-5 flex flex-wrap gap-2",children:[(0,r.jsx)(rO,{variant:"secondary",className:"flex-1 text-xs sm:text-sm py-2 sm:py-2.5",href:rI(e.buyUrl,t.affId),target:"_blank",children:"Xem chi tiết"}),(0,r.jsxs)(rO,{variant:"primary",className:"flex-1 text-xs sm:text-sm py-2 sm:py-2.5",href:rI(e.buyUrl,t.affId),target:"_blank",children:["Đăng ký"," ",(0,r.jsx)(rp,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"})]})]})]})},e.key)})})]})]}),(0,r.jsxs)("section",{style:{background:rD},className:"border-y",children:[(0,r.jsx)(rH,{id:"tai-nguyen"}),(0,r.jsxs)("div",{className:"mx-auto max-w-6xl px-3 sm:px-4 lg:px-6 py-8 sm:py-10 md:py-12",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4 sm:gap-6 md:flex-row md:items-end md:justify-between",children:[(0,r.jsx)("div",{className:"max-w-3xl",children:(0,r.jsx)(r$,{align:"left",eyebrow:"TÀI NGUYÊN",title:"Tải miễn phí tài nguyên Tino",desc:"Plugin, theme, license, tài liệu — dùng ngay cho dự án của bạn."})}),(0,r.jsxs)(rO,{variant:"secondary",href:rI("https://tino.vn",t.affId),target:"_blank",className:"w-fit text-xs sm:text-sm",children:["Mở kho tài nguyên trên tino.vn"," ",(0,r.jsx)(rp,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"})]})]}),(0,r.jsxs)("div",{className:"mt-6 sm:mt-8",children:[(0,r.jsx)("div",{className:"marquee marquee-fade rounded-2xl sm:rounded-3xl border bg-white p-2 sm:p-3",style:{borderColor:rF},children:(0,r.jsx)("div",{className:"marquee-track",children:[...p,...p].map((e,s)=>{let i=e.icon;return(0,r.jsx)(rd.div,{whileHover:{y:-3},transition:{duration:.18},className:"group",children:(0,r.jsxs)("div",{className:"relative min-w-[220px] sm:min-w-[260px] rounded-xl sm:rounded-2xl border bg-white p-3 sm:p-4 shadow-sm",style:{borderColor:rF},children:[(0,r.jsxs)("div",{className:"relative flex items-start justify-between gap-2 sm:gap-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,r.jsx)("div",{className:"flex h-9 w-9 sm:h-11 sm:w-11 items-center justify-center rounded-xl sm:rounded-2xl shrink-0",style:{background:"rgba(34,197,94,.10)",color:rE},children:(0,r.jsx)(i,{className:"h-4 w-4 sm:h-5 sm:w-5"})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"truncate text-xs sm:text-sm font-extrabold text-slate-900",children:e.title}),(0,r.jsx)("div",{className:"mt-0.5 text-[10px] sm:text-xs",style:{color:rL},children:e.meta})]})]}),(0,r.jsx)("span",{className:"relative z-10 shrink-0",children:(0,r.jsxs)("button",{type:"button",onClick:s=>{let i;s.preventDefault(),s.stopPropagation(),i=rI(e.downloadUrl,t.affId),window.open(i,"_blank","noopener,noreferrer")},className:"inline-flex items-center gap-1.5 sm:gap-2 rounded-lg sm:rounded-xl px-2.5 sm:px-3 py-1.5 sm:py-2 text-[11px] sm:text-xs font-semibold text-white",style:{background:rM},children:["Tải"," ",(0,r.jsx)(rp,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"})]})})]}),(0,r.jsx)("div",{className:"relative mt-2 sm:mt-3 flex items-center justify-between",children:(0,r.jsx)("span",{className:"inline-flex items-center rounded-full border px-1.5 sm:px-2 py-0.5 text-[10px] sm:text-[11px] font-semibold",style:{borderColor:"rgba(34,197,94,.28)",background:"rgba(34,197,94,.08)",color:rE},children:"Free"})})]})},`${e.key}-${s}`)})})}),(0,r.jsx)("div",{className:"mt-2 text-center text-[10px] sm:text-xs",style:{color:rL},children:"Slider tự trôi · rê chuột để dừng · bấm card để xem chi tiết"})]})]})]}),(0,r.jsx)("section",{className:"bg-white",children:(0,r.jsxs)("div",{className:"mx-auto max-w-6xl px-4 py-10 md:py-16",children:[(0,r.jsx)(r$,{eyebrow:"VÌ SAO CHỌN TINO",title:"Hạ tầng số ổn định cho cá nhân & doanh nghiệp",desc:"Tập trung vào trải nghiệm dùng ổn định, bảo mật, và dễ mở rộng khi bạn tăng trưởng."}),(0,r.jsx)("div",{className:"mt-6 sm:mt-8 grid gap-2 sm:gap-3 md:gap-4 grid-cols-2 lg:grid-cols-4",children:D.map(t=>(0,r.jsxs)(rW,{className:"p-3 sm:p-4 md:p-5",children:[(0,r.jsx)("div",{className:"flex h-9 w-9 sm:h-10 sm:w-10 md:h-11 md:w-11 items-center justify-center rounded-xl sm:rounded-2xl",style:{background:"rgba(34,197,94,.10)",color:rE},children:(0,r.jsx)(t.icon,{className:"h-4 w-4 sm:h-5 sm:w-5"})}),(0,r.jsx)("div",{className:"mt-2 sm:mt-3 md:mt-4 text-xs sm:text-sm font-extrabold text-slate-900",children:t.title}),(0,r.jsx)("div",{className:"mt-0.5 sm:mt-1 text-[11px] sm:text-xs md:text-sm text-slate-600",children:t.desc})]},t.title))})]})}),(0,r.jsxs)("section",{style:{background:rD},className:"border-y",children:[(0,r.jsx)(rH,{id:"danh-gia"}),(0,r.jsxs)("div",{className:"mx-auto max-w-6xl px-3 sm:px-4 lg:px-6 py-8 sm:py-10 md:py-12",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-end md:justify-between",children:[(0,r.jsx)("div",{className:"max-w-3xl",children:(0,r.jsx)(r$,{align:"left",eyebrow:"ĐÁNH GIÁ",title:"Khách hàng nói gì",desc:"Một vài phản hồi tiêu biểu từ khách hàng."})}),(0,r.jsxs)("div",{className:"hidden sm:flex items-center gap-2",children:[(0,r.jsx)("button",{onClick:()=>E(x.current,"left"),className:"inline-flex h-8 w-8 md:h-9 md:w-9 items-center justify-center rounded-xl border bg-white",style:{borderColor:rF},"aria-label":"Previous",children:(0,r.jsx)(ru.ArrowLeft,{className:"h-3.5 w-3.5 md:h-4 md:w-4 text-slate-600"})}),(0,r.jsx)("button",{onClick:()=>E(x.current,"right"),className:"inline-flex h-8 w-8 md:h-9 md:w-9 items-center justify-center rounded-xl border bg-white",style:{borderColor:rF},"aria-label":"Next",children:(0,r.jsx)(rp,{className:"h-3.5 w-3.5 md:h-4 md:w-4 text-slate-600"})})]})]}),(0,r.jsx)("div",{ref:x,className:"mt-6 sm:mt-8 flex gap-3 sm:gap-4 overflow-x-auto pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:{scrollSnapType:"x mandatory"},children:f.map((t,e)=>(0,r.jsx)("div",{className:"min-w-[80%] snap-start sm:min-w-[320px] md:min-w-[380px]",style:{scrollSnapAlign:"start"},children:(0,r.jsxs)(rW,{className:"h-full p-4 sm:p-5 md:p-6",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:["facebook"===t.source.toLowerCase()?(0,r.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-[#1877F2]",children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",className:"h-4 w-4 text-white",fill:"currentColor",children:(0,r.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})}):t.avatar?(0,r.jsx)("img",{src:t.avatar,alt:t.name,className:"h-8 w-8 rounded-full object-cover",referrerPolicy:"no-referrer"}):(0,r.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full text-xs font-bold text-white",style:{background:rM},children:t.name.charAt(0).toUpperCase()}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"text-xs sm:text-sm font-extrabold text-slate-900",children:t.name}),t.date&&(0,r.jsx)("div",{className:"text-[10px] sm:text-xs text-slate-400",children:t.date})]})]}),(0,r.jsxs)(rU,{children:[t.rating,"★"]})]}),(0,r.jsxs)("p",{className:"mt-2 sm:mt-3 text-xs sm:text-sm leading-5 sm:leading-6 text-slate-600 line-clamp-3",children:["“",t.text,"”"]}),t.link&&(0,r.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",className:"mt-1.5 inline-block text-[11px] sm:text-xs font-medium hover:underline",style:{color:rE},children:"Xem chi tiết →"}),(0,r.jsxs)("div",{className:"mt-3 sm:mt-4 flex items-center justify-between",children:[(0,r.jsx)("div",{className:"flex gap-1",children:Array.from({length:5}).map((e,s)=>(0,r.jsx)("span",{className:"text-xs",style:{color:s0&&(0,r.jsxs)("section",{className:"bg-white",children:[(0,r.jsx)(rH,{id:"faq"}),(0,r.jsxs)("div",{className:"mx-auto max-w-6xl px-4 py-10 md:py-16",children:[(0,r.jsx)(r$,{eyebrow:"FAQ",title:"Câu hỏi thường gặp",desc:"Nếu bạn chưa rõ, cứ nhắn mình mục tiêu + ngân sách, mình gợi ý nhanh nhất."}),(0,r.jsx)("div",{className:"mt-6 sm:mt-8 grid gap-2 sm:gap-3 md:grid-cols-2",children:m.map((t,e)=>(0,r.jsx)(rq,{q:t.q,a:t.a},e))})]})]}),(0,r.jsx)("section",{style:{background:rD},className:"border-t",children:(0,r.jsx)("div",{className:"mx-auto max-w-6xl px-4 py-10 md:py-16",children:(0,r.jsx)("div",{className:"rounded-2xl sm:rounded-3xl border bg-white p-4 sm:p-6 md:p-8 lg:p-10",style:{borderColor:"rgba(34,197,94,.28)"},children:(0,r.jsxs)("div",{className:"grid items-center gap-4 sm:gap-6 md:grid-cols-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"inline-flex items-center gap-1.5 sm:gap-2 rounded-full border px-2.5 sm:px-3 py-1 sm:py-1.5",style:{borderColor:"rgba(34,197,94,.28)",background:"rgba(34,197,94,.10)",color:rE},children:[(0,r.jsx)(rk,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"}),(0,r.jsx)("span",{className:"text-[10px] sm:text-xs font-extrabold uppercase tracking-wider",children:"BẮT ĐẦU"})]}),(0,r.jsx)("h3",{className:"mt-2 sm:mt-3 text-lg sm:text-xl md:text-2xl lg:text-3xl font-extrabold tracking-tight text-slate-900",children:"Chọn dịch vụ phù hợp trong vài phút"}),(0,r.jsx)("p",{className:"mt-1.5 sm:mt-2 text-xs sm:text-sm md:text-base leading-5 sm:leading-6 text-slate-600",children:"Bạn chọn dịch vụ, mình hỗ trợ hướng dẫn triển khai cơ bản để dùng ổn định."})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 sm:gap-3 sm:flex-row",children:[(0,r.jsxs)(rO,{variant:"primary",className:"w-full text-xs sm:text-sm py-2.5 sm:py-3",href:"#dich-vu",children:["Chọn dịch vụ"," ",(0,r.jsx)(rp,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"})]}),(0,r.jsx)(rO,{variant:"secondary",className:"w-full text-xs sm:text-sm py-2.5 sm:py-3",href:"#lien-he",children:"Liên hệ tư vấn"})]})]})})})}),(0,r.jsx)("div",{className:"fixed inset-x-0 bottom-0 z-50 border-t bg-white p-3 md:hidden",style:{borderColor:rF},children:(0,r.jsxs)("div",{className:"mx-auto flex max-w-6xl gap-2",children:[(0,r.jsx)(rO,{variant:"secondary",className:"w-full text-xs sm:text-sm py-2.5",href:"#lien-he",children:"Nhận tư vấn"}),(0,r.jsx)(rO,{variant:"primary",className:"w-full text-xs sm:text-sm py-2.5",href:"#dich-vu",children:"Đăng ký ngay"})]})}),(0,r.jsx)("div",{className:"h-14 sm:h-16 md:hidden"})]})]})}t.s(["TenantLanding",()=>rY],14807)}]);